PDF · Made a little simpler

PDF to XML

Export embedded PDF text to hierarchical, flat or simple XML. Choose standard entities or CDATA and decide whether to include document properties.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
XML settings

Extracts embedded text in PDF content order. Pages without embedded text are marked in the output.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

PDF to XML: how to use it

  1. Open a local PDF or load the sample.
  2. Choose an XML schema structure, escaping and metadata setting.
  3. Convert, review the markup and download the XML for an independent parser.

Limits and notes

One unencrypted PDF up to 50 MB and 100 pages. Exports up to one million embedded text characters and 100,000 source text segments. Graphics-only and scanned pages are marked when they have no embedded text. XML coordinate fields describe baselines and text advances in displayed page points. Line grouping is estimated from the content stream. Output uses a ToolMellow schema with no images, hyperlinks or interactive form controls.

How your privacy works →

PDF to XML: common questions

Which layout includes coordinates?

Hierarchical groups coordinate segments inside blocks. Flat records the first baseline of each inferred line. Simple exports page text and page dimensions.

How are rotated pages reported?

The page dimensions use the displayed orientation. Segment positions are measured from the displayed top-left corner in PDF points. The rotation attribute records the page rotation.

What is included in the metadata header?

The header adds readable standard document information fields such as Title, Author, Subject, Keywords, Creator, Producer and dates. Clear the option to omit them.

What is the difference between entities and CDATA?

Both represent text in XML. Entities encode characters like ampersands. CDATA wraps literal text and splits an embedded closing sequence safely.

Guides