JSON to PDF
Pretty-print JSON into a syntax-coloured PDF in a light or dark theme.
About this tool
JSON to PDF validates your JSON, formats it with consistent indentation and colours keys, strings, numbers and literals so the structure is easy to read on screen or paper.
Pick 2- or 4-space indentation, sort keys alphabetically for easier comparison, and choose a light theme for printing or a dark theme for screens. JSON Lines (one object per line) is also accepted.
Paste JSON directly or add .json files. Everything is processed in your browser — API responses and configuration files stay private.
Engines: pdf-lib · fontkit
How to use
- 1
Add .json files or paste JSON.
- 2
Choose indentation and theme.
- 3
Click Convert to PDF.
Use cases
API documentation
Attach readable sample responses to a spec or ticket.
Config reviews
Print configuration files for an audit or sign-off.
Data snapshots
Archive a JSON export in a format anyone can open.
Frequently asked questions
What happens with invalid JSON?
You get an error message pointing to the problem instead of a broken PDF.
Are very large numbers kept exactly?
Numbers beyond JavaScript precision (over 15–16 digits) may be rounded when reformatted.
Is the text selectable?
Yes, the PDF contains real text that can be searched and copied.
You may also like
TXT to PDF
Turn plain text into a clean PDF with real, selectable text — Thai supported.
Convert to PDFMarkdown to PDF
Convert Markdown (GFM) to a polished PDF with highlighted code, tables and an optional table of contents.
Convert to PDFPDF to JSON
Extract text with positions, fonts, metadata, bookmarks and annotations into structured JSON.
Convert from PDF