How to convert JSON to PDF
- Paste JSON or open a
.jsonfile. A preview of the PDF appears next to it. - Choose the layout (formatted code or table), the page size (A4 or US Letter), the orientation and the font size, and add a title for the page header if you like.
- Click Download PDF. Long documents are split across pages automatically, with page numbers in the footer.
Code layout or table layout?
| Layout | Best for | What you get |
|---|---|---|
| Formatted code | Configuration files, API responses, deeply nested data | Courier font, line numbers, syntax colors, long lines wrapped and indented |
| Table | Arrays of records such as users, orders, products or log entries | One row per item and one column per key, the header repeated on every page, nested objects as columns like address.city |
Tip: for tables with many columns choose landscape orientation and a smaller font size. Cells that are too long end with “…”.
Fonts and special characters
Documents with only English and Western European text use the standard Helvetica and Courier fonts that every PDF reader has built in, so the files stay tiny – usually a few kilobytes per page. When your JSON contains other letters, the converter automatically embeds the open-source DejaVu fonts, reduced to just the characters you use, so Polish, Czech, Turkish, Vietnamese, Greek and Cyrillic text such as Russian or Ukrainian prints correctly and can be copied from the PDF. Scripts these fonts do not include – Chinese, Japanese, Korean, Thai, Arabic and emoji – are written as \uXXXX escapes in the code layout, so the printed JSON stays exact, and as “?” in the table layout.
Why not just print the page from the browser?
Printing a web page usually cuts long lines, drops syntax colors and adds the browser's headers and footers. A real PDF keeps the formatting, has proper page breaks and page numbers, and looks the same on every device – ideal for attaching JSON to a ticket, a report or an audit.
Frequently asked questions
Is my JSON uploaded to create the PDF?
No. The PDF is built by JavaScript in your browser; nothing is sent to a server.
How do I convert a JSON array to a table in a PDF?
Choose the Table layout. Every object of the array becomes a row and every key a column; nested objects become columns like address.city.
Is there a page limit?
The code layout has no fixed limit. The table layout includes up to 10,000 rows; for larger data sets, JSON to CSV is the better format.
What about non-Latin characters?
Accented Latin letters, Greek and Cyrillic are fully supported: the converter embeds a Unicode font automatically when your data needs it. Chinese, Japanese, Korean, Thai, Arabic and emoji are not covered by that font; in the code layout they are kept as \uXXXX escapes, so no data is lost, and in the table layout they appear as “?”.