pdf to xml
Upload Your PDF File

or drop your file anywhere on this page

Processed in your browser, never uploaded

How to Convert PDF to XML

  1. Add your PDF – Drop the file into the box above or click "Select PDF File".
  2. Choose the pages – Keep "all" or enter pages such as 1-5, 7 in "Pages to convert" – or click the thumbnails.
  3. Choose the structure – Under "Output structure" pick "Structured: headings, paragraphs, lists, tables", "Plain text per page", "Text lines with positions" or "Document and page information only". For scanned pages tick "Read scanned pages with OCR" and choose the language.
  4. Convert and save – Click "Convert to XML", then "Download .xml" or "Copy XML".

PDF to XML Converter: What You Get

When to Convert PDF to XML

PDF to XML Converter: Good to Know

PDF to XML – Frequently Asked Questions

How do I convert a PDF to XML?

Add the PDF, choose the pages and the output structure, click "Convert to XML" and download the .xml file.

What does the XML look like?

A document element with a metadata section and a pages element. Each page has its number, size and character count and contains heading, paragraph, list and table elements – or text or line elements, depending on the structure you chose.

Can I convert a scanned PDF?

Yes. Tick "Read scanned pages with OCR" and choose the document language. Pages that already contain text are converted directly.

Are tables converted into XML tables?

Simple tables with clearly aligned rows and columns become table elements with row and cell. Complex tables stay as paragraphs.

Can I get the coordinates of the text?

Yes. Tick the position option for blocks, or choose "Text lines with positions". Values are in PDF points from the top left of the page.

Is my file uploaded?

No. The conversion, including OCR, runs in your browser, so the PDF stays on your device.

Is it free?

Yes – no sign-up and no watermark.

Not sure which format fits your goal? See Convert PDF Guide.