Getting Started
Install LiteParse and parse your first document in under a minute.
LiteParse is available for Node.js, Python, and as a standalone Rust binary.
All versions (except WASM) ship the same CLI and core library capabilities.
Installation
Section titled “Installation”npm i -g @llamaindex/liteparsepip install liteparsecargo install liteparsenpm i @llamaindex/liteparse-wasmSince the WASM package is designed for browser usage, it does not include the lit CLI command. Instead, you can use the exported functions directly from JavaScript to parse documents in the browser environment.
For full browser usage and limitations, see the WASM package guide.
Quick start
Section titled “Quick start”Once installed, parse from the command line:
# Parse a PDF and print text to stdoutlit parse document.pdf
# Save output to a filelit parse document.pdf -o output.txt
# Get structured JSON with bounding boxeslit parse document.pdf --format json -o output.json
# Render to Markdown (headings, tables, lists, images, links)lit parse document.pdf --format markdown -o output.md
# Parse only specific pageslit parse document.pdf --target-pages "1-5,10,15-20"Batch parsing
Section titled “Batch parsing”Parse an entire directory of documents at once:
lit batch-parse ./pdfs ./outputsScreenshots
Section titled “Screenshots”Generate page images from a PDF for LLM agents or visual workflows:
lit screenshot document.pdf -o ./screenshotsNext steps
Section titled “Next steps”- Markdown output: Render documents to clean, structured Markdown.
- Library usage: Use LiteParse programmatically from TypeScript or Python.
- OCR configuration: Configure Tesseract, use an external OCR server, or bring your own.
- Multi-format support: Parse DOCX, XLSX, PPTX, images, and more.
- Document complexity: Check whether a document needs OCR / heavy processing before parsing, and route accordingly.
- Browser usage (WASM): Run LiteParse entirely in the browser.
- Agent skill: Add LiteParse as a skill for coding agents.
- CLI reference: Complete command and option reference.
Note for AI agents: this documentation is built for programmatic access.
- Overview of all docs: https://developers.llamaindex.ai/llms.txt
- Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md
- Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters.
- A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/python/shared/mcp/