JSON to PDF
Turn JSON into a paginated PDF, re-indented and set in a monospace font.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the json to pdf
- Paste JSON, or send it here from another tool.
- Choose a page size, margin and text size.
- Make the PDF and download it.
About this tool
JSON is written for machines and read by people under duress — during an incident, in a review, or as an attachment to a ticket. This re-indents it and sets it in a monospace font so nesting is visible and values line up, then paginates it.
Monospace is the whole point. In a proportional font the indentation of nested objects drifts, because the leading spaces are narrower than the characters they are meant to align with, and deep structures stop being scannable. A fixed-width font keeps each level exactly where the indentation puts it.
Invalid JSON is reported with the parser's own message rather than being printed as-is. A PDF of malformed JSON looks correct and is not, and the moment to find out is before it is attached to something.
A PDF is an odd destination for structured data, and it is worth being clear about when it makes sense: archiving a payload alongside a report, attaching evidence to a ticket, or printing a configuration for a review. For anything that will be read back by a machine, keep the `.json` file. The standard PDF fonts cover Latin text only. Characters outside that range are replaced with a question mark rather than failing the build, and the page says so — pdf-lib throws on them rather than substituting, so silently dropping the document would be the alternative.
Common uses
- Attaching a formatted payload to a ticket or a report.
- Printing a configuration file for review.
- Archiving an API response in a fixed, readable form.
Frequently asked questions
- Why monospace?
- Because indentation is how JSON nesting is read. In a proportional font the leading spaces are narrower than the characters they align with, so deep structures drift out of alignment.
- What happens with invalid JSON?
- It is reported with the parser's message and position rather than printed. A PDF of malformed JSON looks fine and is not, which is the worst time to find out.
- Should I use PDF for data?
- Only for reading, archiving or attaching. Anything that will be parsed again should stay a .json file — a PDF is a picture of the data, not the data.
Related tools
Markdown to PDF
Turn Markdown into a laid-out PDF with headings, lists, quotes, code blocks and rules.
CSV to PDF
Turn a CSV into a paginated PDF table with sized columns and a header repeated on every page.
JSON Formatter
Format, validate and minify JSON with clear error messages that point at the exact position.
JSON Diff
Compare two JSON documents structurally, ignoring key order and formatting.