Convert XML to PDF
Paste or open an XML file and get a readable, indented PDF with the markup coloured.
- Files never leave your device
- Free, no signup, no watermark
- Works on any browser
How to convert XML to PDF
- 1Paste your XML or open a .xml file
- 2Choose the page size and margins
- 3Download the PDF
About XML to PDF
An XML to PDF converter that prints XML the way a code editor shows it: pretty-printed with consistent indentation, tags, attributes, text, comments and CDATA coloured, and long lines wrapped. The text stays selectable in the PDF.
See also: JSON to PDF, PDF to XML
Useful for
- Print an e-invoice XML for your records
- Review a data export or feed on paper
- Attach an XML file to a report or ticket
- Share a sitemap or configuration as a PDF
Frequently asked questions
How is the XML laid out?+
Each element starts on its own line, indented under its parent, with tags, attributes, values and comments in different colours. Elements that only hold text stay on one line.
Which files work?+
Any well-formed XML: data exports, e-invoices, RSS and Atom feeds, sitemaps, SVG, KML and GPX, Office and app settings.
What if the XML is not valid?+
It is printed exactly as written, so you can still read or review it.
Are my files uploaded?+
No. Everything happens in your browser, so your data stays on your device.