About Pix2Text
Pix2Text (P2T) is an open-source Python 3 package, MIT licensed, that reads images and turns their content into Markdown. It recognizes page layout, tables, images, text and mathematical formulas, outputting formulas as LaTeX, and can convert an entire PDF, including scanned ones, into Markdown.
It combines several models: a layout analysis model, a table recognition model, a text recognition engine and formula detection and recognition models. Text recognition supports more than 80 languages. English and Simplified Chinese use CnOCR, while other languages use EasyOCR. Version 1.1.3 added optional support for VLM-based models through LiteLLM, installed with `pip install pix2text[vlm]`.
The project positions itself as a free Python alternative to Mathpix. Because a Python toolkit may be hard for people who do not use Python, the author also runs a free-to-use web version where images can be uploaded directly, and it says the web version uses the latest models.
Key features
- Recognizes layouts, tables, text and formulas into Markdown
- Converts whole PDF files to Markdown
- Text recognition across 80+ languages
- Dedicated math formula detection and recognition models
- Optional VLM model support via LiteLLM
- Layout analysis with DocLayout-YOLO
Good fit for
- Converting scanned PDFs to Markdown
- Extracting LaTeX from formula images
- Table recognition from images
Pix2Text: questions and answers
- What is Pix2Text used for?
- Pix2Text is a Python tool that recognizes layouts, tables, formulas and text in images or PDFs and converts them to Markdown, as a free Mathpix alternative. It is a good fit for converting scanned PDFs to Markdown, extracting LaTeX from formula images and table recognition from images.
- Is Pix2Text open source?
- Yes. Pix2Text is open source under the MIT licence. Its source code is on GitHub at breezedeus/Pix2Text.
- Is Pix2Text free?
- Yes. Pix2Text is open source, so the software itself is free to use. A managed cloud version is also available.
- Can I self-host Pix2Text?
- Yes. Pix2Text can be self-hosted on your own server or infrastructure.
- Is Pix2Text actively maintained?
- The most recent commit to Pix2Text was on 23 August 2026, and the latest release is v1.1.7, published on 23 August 2026. The project has 3.3k stars on GitHub, with 11 added in the last 30 days.
