PDF · Made a little simpler

XML to PDF Converter

Convert XML into a selectable PDF source listing. Preserve namespaces, attributes and text, and preview or download the PDF locally.

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

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

XML to PDF Converter: how to use it

  1. Paste XML, open a UTF-8 XML file or load the inventory example.
  2. Choose Indented source or Original spacing, then prepare a PDF preview.
  3. Choose paper, orientation and margins. Select Print or save PDF and choose Save as PDF.

Limits and notes

Reads up to 250,000 UTF-16 code units of well-formed XML 1.0 without DTDs. The output is selectable source text. Original spacing keeps the supplied whitespace. Indented source adjusts whitespace between structural nodes and keeps mixed text and xml:space content together.

How your privacy works →

XML to PDF Converter: common questions

Do namespaces still appear in the PDF?

The listing includes qualified names and stored namespace declarations. The XML parser checks namespace bindings before preparing a preview.

How do I keep the original indentation?

Choose Original spacing. Long lines wrap to the page width for reading.

Does this apply an XML stylesheet?

The PDF prints the supplied markup as source text. Processing instructions appear as text and no stylesheet is loaded.

Guides