How to

How to convert JSON or XML to PDF

JSON and XML files convert to a readable PDF — useful when you need to attach an API response to a ticket, put a config file into a review document, or include a structured export in an audit trail without asking the reader to open a code editor.

Takes about 1 min

Steps

  1. Format the file before converting

    A minified single-line JSON file converts as one very long line. Pretty-print it first — most editors do this with a single command.

  2. Open the extension and choose Upload Files

    Drag the .json or .xml file in.

  3. Consider landscape for deeply nested data

    Deep indentation runs wide; landscape avoids awkward wrapping.

  4. Convert

    The structure is preserved and the text stays selectable.

Worth knowing

  • Redact secrets before converting. API responses and config files frequently contain tokens, keys and personal data, and a PDF is easier to forward than a file on disk.
  • Very large payloads are bounded by tab memory — split anything enormous.
  • Conversion is local, so a config file containing internal hostnames never leaves your machine.

Questions

Why is my JSON all on one line in the PDF?

The source file is minified. Pretty-print it in your editor before converting — the conversion renders the file as it is, so formatting has to happen first.

Related guides