XML to PDF, as a readable listing
PDFCheetah's free XML to PDF tool sets an XML file as an indented listing on PDF pages in your browser — attributes and comments as written — and your file never leaves your device.
Updated
Choose an XML file to turn into a PDF
One file · up to 20 MB · XML bytes are checked on this device
Processed on this device
Selecting and processing files stays in this browser.
Checking offline readiness
Offline availability is confirmed after this tool loads.
Why there is no daily limit, and no upload
How to turn an XML file into a PDF
- Choose an .xml file — a feed, a configuration, a data export, an invoice.
- Choose line numbers, the text size and the page. The preview is the PDF itself, redrawn after every change.
- Select Create PDF, then Download.
What you get
The file as a readable listing: one element to a line, indented by how deeply it is nested, with short text kept beside its element and attributes, comments and entities exactly as written. A file that is not well formed is still listed, with the fault named at the top. Nothing is uploaded.
Current limitations
This is a listing of the file, not a document styled by it: stylesheets (XSL or CSS) are not applied, and colors are not used for syntax. The Fonts setting decides which scripts are drawn; characters beyond the chosen level are drawn as a replacement mark, and the result says how many.
Common questions
- Is my XML file uploaded to make the PDF?
- No. The file is read and set as pages in your browser, and the PDF is written on this device. Nothing is sent anywhere.
- What does the PDF look like?
- A listing of the file: one element to a line, indented by how deeply it is nested, with short text kept beside its element. Attributes, comments and entities appear exactly as written, and each line can be numbered.
- Is a stylesheet applied?
- No. XSL and CSS stylesheets are not applied, so the PDF shows the file itself rather than the document a stylesheet would make of it. Syntax is not colored either.
- What if the XML is not well formed?
- It is still listed as written, with the fault named at the top so you can find it.
- Which languages can it set?
- The scripts the Fonts setting covers. Light covers English, the Western European languages and Hindi with nothing to download; Medium, the default, adds the rest of Latin, Greek, Cyrillic, Arabic, Hebrew, Thai and the main Indian scripts; Heavy adds Chinese, Japanese and Korean. Anything else is drawn as a replacement mark, and the page counts those before you create the PDF.