Loading Techie Utils…

JSON to PDF Converter

Print a JSON file as an indented tree. Free, and runs entirely in your browser — nothing you enter is uploaded, stored or sent to a server.

About JSON to PDF

A JSON file printed as an indented tree — for an appendix, a review, a filing, or any of the situations where a structured document has to exist on paper.

It is rendered from the parsed structure rather than from the source text, which is what makes it useful: a file that arrived minified on one line comes out properly indented, and a file that was already indented comes out indented consistently. The syntax that carries no meaning on paper — the quotes around every key, the commas, the closing braces' punctuation — is reduced so the structure itself is what you read.

That also means the output is not JSON any more. It is a printed representation of it, and pasting it back into a parser will not work.

Where it helps

  • Rendered from the parsed structure, so the indentation is consistent however the file arrived.
  • Invalid JSON is reported with the parser's own message rather than producing a broken document.
  • Arrays and objects are distinguished, and empty ones are shown as such rather than as two lines.
  • The file never leaves your browser — an export from an internal system usually should not.
  • Page size, orientation and margin are all yours.

Limits

  • The output is a rendering, not JSON: it cannot be parsed back.
  • Deeply nested data indents off the right edge; there is no wrapping of the indentation itself.
  • Very long string values wrap at the margin, which can make a tree hard to follow.
  • No syntax colouring — the standard PDF fonts and one colour are what the engine offers.
  • Standard PDF fonts are Latin-1 only, so non-Latin strings are substituted.

Frequently asked questions

Can I get the JSON back out of the PDF?

Not reliably. This is a printed representation with the punctuation reduced. Keep the original file — a PDF is a poor archive format for data.

Why is my file rejected?

Because it is not valid JSON, and the message says where the parser stopped. Trailing commas and single quotes are the usual culprits — the JSON tools here will repair both.

Can it be syntax-highlighted?

Not with the standard PDF fonts and the current layout engine. The indentation is what carries the structure here.

What about very large files?

8 MB is the ceiling, and long before that the result is a PDF nobody will read. A large dataset belongs in a spreadsheet — CSV to PDF sets it as a table.

Related tools

More Images & Files tools