PDF to XML
Turn the text of a PDF into structured XML.
Drop a PDF to convert
or choose a file, or paste it with Ctrl or Cmd + V
More PDF converters
Every format has its own page, like PDF to JPG or JPG to PDF. Pick one to open it.
Convert PDF to imagesOne picture per page
Convert PDF to documentsEditable text files
Convert PDF to dataStructured text for code
Convert images to PDFPictures into one PDF
Convert documents to PDFText and data into a PDF
Online PDF to XML Converter
XML organises text in tagged elements, which many publishing, data and archive tools can read. Add your PDF and download the XML result. It all runs in your browser.
- Each page is a page element holding paragraph elements.
- Special characters are escaped so the file is always valid XML.
- Includes the file name and the number of pages.
- Private by design. Your PDF is never uploaded to a server.
How to convert PDF to XML
- Add your PDF by choosing it or dragging it onto the box.
- Check that XML is chosen in the format list. You can switch to any other format there.
- Choose Convert to XML. The file downloads straight away.
PDF to XML questions
How do I convert a PDF to XML?
Add your PDF, choose XML, then choose Convert to XML. You get one XML file with the text of every page.
What does the XML look like?
A document element holds one page element for each page, and every page holds a paragraph element for each paragraph of text.
Does it work on a phone or tablet?
Yes. Tap Choose PDF to pick a file from your device. The converted file saves to your downloads.
Is my PDF uploaded anywhere?
No. Everything runs in your browser on your own device. Your file is never sent to a server.