> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/QwenLM/Qwen3-VL/llms.txt
> Use this file to discover all available pages before exploring further.

# Document Parsing

> Advanced document parsing with layout, text, and Qwen HTML format

# Document Parsing

Qwen3-VL features powerful document parsing capabilities that have reached a new level of sophistication. The model can extract not just text, but also layout position information and structured content in the Qwen HTML format.

## Capabilities

Qwen3-VL's document parsing goes beyond simple text extraction:

* **Text Extraction**: Accurate OCR across the entire document
* **Layout Understanding**: Preserves document structure and hierarchy
* **Position Information**: Tracks where elements appear in the document
* **Qwen HTML Format**: Structured output maintaining semantic relationships
* **Multi-format Support**: Works with PDFs, images, scanned documents, and more

## Key Features

### Enhanced OCR

* Support for 32 languages (expanded from 10)
* Robust performance in challenging conditions:
  * Low light environments
  * Blurred or tilted images
  * Rare and ancient characters
  * Technical jargon and specialized terminology

### Structured Output

The Qwen HTML format preserves:

* Document hierarchy (headings, sections, paragraphs)
* Tables and their structure
* Lists and enumerations
* Text formatting and emphasis
* Spatial relationships between elements

## Use Cases

* **Document Digitization**: Convert physical documents to structured digital formats
* **Information Extraction**: Extract specific data from forms and reports
* **Archive Processing**: Digitize historical documents and records
* **Legal & Compliance**: Parse contracts, agreements, and regulatory documents
* **Research**: Extract structured data from academic papers and publications

## Try It Out

Explore document parsing with our interactive cookbook:

> **[Document Parsing Cookbook](https://github.com/QwenLM/Qwen3-VL/blob/main/cookbooks/document_parsing.ipynb)**
>
> The parsing of documents has reached a higher level, including not only text but also layout position information and our Qwen HTML format.

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/QwenLM/Qwen3-VL/blob/main/cookbooks/document_parsing.ipynb)

## Advanced Features

* **Long Document Understanding**: Native 256K context with expansion to 1M tokens
* **Multi-page Processing**: Handle entire books and lengthy reports
* **Layout Preservation**: Maintain visual hierarchy in output
* **Table Recognition**: Extract complex table structures accurately

## Related Capabilities

* [OCR](https://mintlify.com/QwenLM/Qwen3-VL/capabilities/ocr.md) - General text recognition and extraction
* [Spatial Understanding](https://mintlify.com/QwenLM/Qwen3-VL/capabilities/spatial-understanding.md) - Understand document layout spatially
* [2D Grounding](https://mintlify.com/QwenLM/Qwen3-VL/capabilities/grounding-2d.md) - Locate specific elements in documents


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.