XML to PDF
Raw XML in a browser window is a wall of angle brackets. This tool parses your XML and draws it as indented pages that mirror the document's structure: every element on its own line, nested elements stepped in by depth, attributes listed under their element, and text shown beside the element that holds it. Free, no sign-up, no watermark, and it runs in your browser — your file is processed on your device and never uploaded.
XML → PDFHow to use XML to PDF
- Add your .xml file — it is read on your device, never uploaded anywhere.
- Tap Convert to PDF. The file is checked for well-formedness first.
- Download the structured PDF.
Good to know
- Price: free. There is no paid plan, no credits and no trial.
- Sign-up: none. The tool opens and works straight away.
- Watermark: none is added to anything you download.
- Privacy: Your files are processed on your own device, in your browser, and are never uploaded.
- Part of: the Convert tools in PdfLuxe — 151 free tools in one place.
How XML to PDF works
PdfLuxe parses your XML in the browser with the DOM parser, then walks the element tree and typesets it as a readable document with pdf-lib: element names become the structure, nesting becomes indentation, attributes and text content are shown with their elements, and the whole tree flows across pages in document order. An invoice XML, a product feed or a configuration file stops being a wall of angle brackets and becomes something a person can read, check and file.
The conversion is faithful rather than interpretive: the tool does not apply the XML's own stylesheet or guess which elements matter, because most XML that needs a PDF — e-invoices, interchange records, exports — has no presentation layer at all. Every element is shown, in order, so nothing is silently omitted from the record.
When to use XML to PDF
- E-invoices and interchange records. XML invoices (the format behind many e-invoicing systems) become a human-readable PDF for accounts, customers and auditors.
- Data exports for review. System exports in XML become readable documents for people outside the engineering team.
- Feeds and catalogues. Product and data feeds can be eyeballed as paginated documents instead of raw markup.
- Configuration records. File a readable copy of an XML configuration with the change paperwork it belongs to.
- Archival copies. A fixed PDF reading copy sits alongside the XML master in a records bundle.
Getting more from an XML conversion
The PDF is the reading copy; the XML remains the data master, and keeping both together is what makes the pair useful — the PDF for people, the XML for systems. If the file is an e-invoice, check the totals in the PDF against the XML's summary elements before filing it, because a reading copy is only trustworthy when it visibly matches its source. For very large exports, consider converting a single section — one invoice from a batch file, one catalogue branch — by extracting that element into its own small XML first; the resulting PDF is short enough to actually read and sign off. And if the same XML must be re-issued regularly, the conversion is deterministic: the same input produces the same layout every time, so this month's PDF and last month's differ only where the data differs.
Privacy — your files stay on your device
Your files are processed on your own device, in your browser, and are never uploaded. There is no account, no sign-up and no cloud copy of your document: the work happens in this tab, and the result exists only as the file you download. The XML is parsed and typeset in this tab; your file is never uploaded.
Questions people ask
Is this really free?
Yes. Every tool in PdfLuxe is free with no premium tier: no sign-up, no credits that run out, and no watermark on what you download.
Are my files uploaded anywhere?
No. The tool runs entirely in your browser, on your own device. The file you add is never uploaded to a server.
What if my XML is malformed?
The browser's XML parser rejects it and the tool tells you plainly — malformed XML is not guessed at or silently repaired.
Are attributes shown?
Yes — each attribute is listed under its element as @name = value.
Does it apply my XSLT stylesheet?
No. This is a structure view of the XML itself, not a styled rendering — XSLT is not applied.
I have an XML invoice — will it look like an invoice?
It will read as the invoice's complete data — seller, buyer, lines, totals — laid out in the XML's own structure, clearly and in order. It will not reproduce a designed invoice layout, because the XML itself does not contain one; for a designed document, the issuer's own rendering is the reference.
What is the difference between XML to PDF and JSON to PDF?
The inputs differ — XML elements and attributes versus JSON objects and arrays — but the job is the same: a faithful, readable, printable document from machine data. Use whichever matches your file.
Does it work with RSS or sitemap files?
Yes — RSS feeds and XML sitemaps are ordinary XML, and both convert into readable tree documents. A large sitemap makes a long PDF, which is sometimes exactly the audit artefact you want.
Why turn XML into a PDF?
XML still carries invoices, feeds, configuration and data interchange everywhere, and its audience is often not technical: someone needs to check what a file actually says. A structured PDF — elements, attributes and values in reading order, with the nesting visible — is the quickest way to let a person verify an XML file without opening a developer tool.
Honest limits
The PDF shows structure, not a styled document: namespaces are shown as written in tag names, comments and processing instructions are not printed, and very deep trees are indented up to eight levels. Files are limited by your device's memory.
- An XSLT stylesheet attached to the XML is not applied — the tool shows the data tree itself, not a designed rendering of it.
- The document must be well-formed XML. A mismatched tag stops the parse and is reported, rather than producing a partial document presented as complete.
- Very large XML files produce long PDFs: everything in the tree is laid out, nothing is summarised away.
Related tools
Questions about this tool? Email support@pdfluxe.com.