Skip to content
HappyPDFz

XML to PDF

Turn an XML file into a PDF with neat indentation, in a fixed-width font. If the XML has a mistake, you are told which line. It all happens on your device.

The XML is checked and shown with indentation, as text. Nothing is run or loaded from the internet.

This tool works with the Latin alphabet: letters A–Z with accents (á, ñ, ç, ü…), numbers, and common symbols. Other alphabets, such as Cyrillic, Greek, Arabic, or Chinese, can’t be drawn yet.

You can also type or paste the text below.

Preview of the first page

How to use it

  1. Choose your .xml file, or paste the XML in the box.
  2. Leave “Indent the XML” on to format it neatly, and pick the page size, margin, and text size.
  3. Press “Convert to PDF” and download the result.

How it works

The tool checks that the XML is well formed (tags opened and closed in the right order) and, if you want, rewrites it with one indentation level per nesting level. Then it lays it out in a fixed-width font, wrapping long lines.

If something is wrong, such as a tag that is not closed, you see a message with the line, and no PDF is made.

Good to know

  • It checks that the XML is well formed, not that it follows a schema (XSD). Files up to 2 MB and PDFs up to 1,000 pages.
  • For now only the Latin alphabet is supported (A–Z with accents, ñ, ç, numbers, and common symbols). If the text has other characters, such as Cyrillic, Greek, Arabic, Chinese, or emoji, the tool tells you which ones, and no PDF is made.
  • Nothing is uploaded: your text is turned into a PDF in your browser. Download the result before closing the page.

Frequently asked questions

Is my text uploaded anywhere?

No. Everything happens in your browser, on your own device. We never receive your text or your files.

Why does it say a character is not supported?

PDF files made here use the standard PDF fonts, which only cover the Latin alphabet. The message names the characters to change or remove. Support for more alphabets may come later.

What does “well formed” mean?

Every tag that opens is closed in the right order, and the document has a single root element. If not, the message points to the line.

Does it change my data?

With indentation on, only the spaces between tags change. You can turn it off to keep the text exactly as it is.