Extract PDF text in your browser with LiteParse for the web

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Engineers can now parse PDFs into cleanly ordered text entirely client-side at a public URL, with no data leaving the machine.

Read this as

Simon Willison ported LiteParse, a command-line PDF text extractor from LlamaIndex, so it now runs entirely inside a web browser at simonw.github.io/liteparse/. Unlike AI-based extractors, it uses standard PDF parsing plus optional Tesseract OCR and clever layout heuristics for multi-column pages. Nothing you upload leaves your machine. It is free to try today and aimed at anyone who needs clean text from awkward PDFs.

LlamaIndex's LiteParse PDF extractor can now be used in the browser thanks to a build by Simon Willison, hosted free on GitHub Pages. Because all processing is client-side via PDF.js and Tesseract.js, no private documents are transmitted, removing a key privacy objection. Competing tools that ship PDFs to servers now have a zero-cost, privacy-preserving alternative for simple extraction tasks.

LiteParse is a Node.js CLI that does spatial text parsing of PDFs via heuristics for column detection, falling back to pluggable OCR (Tesseract) for image-only pages. Willison ported it using PDF.js and Tesseract.js, since these are the same underlying libraries. Built with Claude Code plus Opus 4.7 in 59 minutes, it supports visual citations with bounding boxes, JSON output of text positions and fonts, and was verified working in Chrome, Firefox and Safari after a Safari bug fix.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

LiteParse LlamaIndex PDF.js Tesseract.js GitHub Pages Claude Code OpenAI Codex

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading