Convert JSON to PDF
Create a readable PDF from structured JSON for sharing, printing, or archiving.
Convert JSON files online
We don’t have a dedicated online converter for JSON to PDF yet, but you can convert JSON files online to these and more formats:
Want to convert JSON to PDF?
Let us know. We pick the conversions to add next by how many people ask for them.
How to convert json to pdf file
- Other formats
- No ratings yet.
A client, printer, records system, or email workflow may require a fixed-layout document instead of a data file. Converting the file produces a readable snapshot for sharing, printing, or archiving, but it does not automatically turn nested data into a well-designed report.
What the JSON format is
JSON (JavaScript Object Notation) is a plain-text, language-independent format for objects, arrays, strings, numbers, Boolean values, and null. Web APIs, application settings, browser software, databases, export tools, logs, product catalogs, and developer scripts commonly create .json files.
JSON preserves data values and nested relationships, but it does not define fonts, page sizes, headers, tables, page breaks, or other print-layout rules. A converter must therefore choose how to present the structure.
What the PDF format is
PDF is a page-oriented document format designed to preserve text, graphics, fonts, and layout across operating systems and printers. It suits reports, invoices, forms, client copies, and records that recipients should view or print without changing the underlying data.
PDF is less suitable for sorting, filtering, or reusing values. Keep the original .json file, or provide a CSV export alongside the PDF, when recipients need machine-readable data.
Generate a formatted PDF with Python and a browser
This local workflow avoids uploading the source and gives control over headings, tables, spacing, and escaping. It is suitable for small and moderately sized JSON documents.
- Install Python 3 and save the source as
data.json. - Save this script as
json_to_pdf.pyin the same directory:
import html
import json
from pathlib import Path
source = json.loads(Path("data.json").read_text(encoding="utf-8"))
def render(value):
if isinstance(value, dict):
rows = []
for key, item in value.items():
rows.append(
f"<tr><th>{html.escape(str(key))}</th>"
f"<td>{render(item)}</td></tr>"
)
return "<table>" + "".join(rows) + "</table>"
if isinstance(value, list):
return "<ol>" + "".join(
f"<li>{render(item)}</li>" for item in value
) + "</ol>"
if value is None:
return "<em>null</em>"
return html.escape(str(value))
page = f"""<!doctype html>
<html><head><meta charset='utf-8'>
<title>JSON report</title>
<style>
body {{ font: 11pt Arial, sans-serif; margin: 15mm; color: #222; }}
table {{ border-collapse: collapse; width: 100%; margin: 0 0 14px; }}
th, td {{ border: 1px solid #999; padding: 6px; vertical-align: top; text-align: left; }}
th {{ width: 25%; background: #eee; }}
li {{ margin: 4px 0; }}
</style></head><body>
<h1>JSON report</h1>{render(source)}
</body></html>"""
Path("json_report.html").write_text(page, encoding="utf-8")
- Run
python json_to_pdf.py. On some Windows installations, usepy json_to_pdf.py. - Open
json_report.htmlin Chrome, Edge, Firefox, or Safari and choose Print → Save as PDF or the browser's PDF output option. - Inspect the preview for clipped columns, split tables, excessive whitespace, and missing characters. Enable background graphics if the gray table headers should appear.
The script escapes HTML-sensitive characters, so values containing markup are displayed as text rather than interpreted as HTML. It renders objects as nested two-column tables and arrays as numbered lists; a large or deeply nested dataset may need a custom template that selects fields or flattens records.
Use an online converter for non-sensitive data
Services such as CloudConvert and Convertio can accept a JSON file and return a PDF when that conversion is available in their current interface. Upload the file, choose PDF as the target, start the conversion, and review the downloaded result. These services may produce a raw code listing or minimally formatted pages rather than a report, so check the preview and text selection.
Do not upload credentials, personal information, proprietary exports, or regulated records unless the provider's security, retention, and processing terms meet your requirements. A local workflow is safer for confidential data.
Print formatted JSON from a desktop editor
For a developer-oriented copy, open the file in Visual Studio Code, run Format Document, then choose File → Print and select a PDF printer or the system's PDF output. A JSON-aware editor such as Notepad++ with a JSON-formatting plugin supports the same approach. This preserves indentation and syntax but usually creates a code listing, not a table-based report.
Quality and compatibility limits
- Validate the source before conversion. Run
python -m json.tool data.json; malformed JSON causes Python and most converter services to stop. - JSON object member order has no general presentation meaning, and duplicate member names are not portable. Sort keys or records in the script when repeatable output matters.
- Long strings and wide objects can overflow pages. Select relevant fields, wrap text, reduce the font size, or create separate tables for major collections.
- Unicode characters require suitable fonts. If a browser substitutes a font or the PDF lacks a needed glyph, characters may appear as boxes; use a font with the required script and verify the exported PDF.
- Base64 data, Markdown, URLs, and embedded markup are values, not automatically images or formatted content. Add explicit handling if those values need special rendering.
- Browser-generated PDFs normally contain selectable, searchable text. A screenshot or scanned printout creates image-only pages and may require OCR.
JSON vs PDF: format comparison
How the JSON and PDF formats compare on the properties that matter most for this conversion.
| Property | .JSON JavaScript Object Notation | .PDF Portable Document Format |
|---|---|---|
| Open standard | Yes | Yes |
| Compression | Uncompressed | Both |
| Typical file size | Small | Medium |
| Opens in a web browser | Yes, natively | Yes, natively |
| Further editing | Easy | Limited |
| Metadata support | None | Extensive |
| Plain-text readable | Yes | No |
| Best used for | Data exchange | Publishing |
| Introduced | 2001 | 1993 |
| Developer | Douglas Crockford / ECMA International | Adobe Systems (now Adobe Inc.); standardized by ISO |
| MIME type | application/json | application/pdf |
Information about file extensions and file types is provided by File-Extensions.org
The database currently does not contain any direct json file converter links.
Additional formats for
json file conversion
Convert to pdf from
other formats
- sor to pdf
- goodnotes to pdf
- ksp to pdf
- pdc to pdf
- chm to pdf
- wpf to pdf
- kgm to pdf
- wix to pdf
- bpmc to pdf
- wpc to pdf
- 1pe to pdf
- 2cd to pdf
- 2d to pdf
- 3drep to pdf
- _pd to pdf
- _xls to pdf
- a$v to pdf
- aae to pdf
- abk to pdf
- abr to pdf
- accdc to pdf
- accdp to pdf
- accdt to pdf
- aci to pdf
- acms to pdf
- aco to pdf
- add to pdf
- ade to pdf
- adp to pdf
- ahs to pdf
- ai4 to pdf
- akpg to pdf
- alb5 to pdf
- ald4 to pdf
- ald5 to pdf
- ani to pdf
- ans to pdf
- ap to pdf
- api to pdf
- apj to pdf
- apm to pdf
- apng to pdf
- apsx to pdf
- apx to pdf
- arf to pdf
- argo to pdf
- art to pdf
- asa to pdf
- asl to pdf
- asmdot to pdf
- aso to pdf
- asr to pdf
- asv to pdf
- atc to pdf
- atomsvc to pdf
- audio to pdf
- ava to pdf
- avs to pdf
- awd to pdf
- awg to pdf
- aws to pdf
- awt to pdf
- backup to pdf
- baraha to pdf
- bay to pdf
- bbl to pdf
- bdl to pdf
- bdr to pdf
- binary to pdf
- bjo to pdf
- bk1 to pdf
- blu to pdf
- bnk to pdf
- bo1 to pdf
- booktemplate to pdf
- bpn to pdf
- bpt to pdf
- btx to pdf
- bw to pdf
- bzz to pdf
- c2k to pdf
- cad to pdf
- caj to pdf
- calibz to pdf
- cbc to pdf
- cdg to pdf
- cdmz to pdf
- cds to pdf
- cdtx to pdf
- cel to pdf
- celtex to pdf
- celx to pdf
- cep to pdf
- cfc to pdf
- cff2 to pdf
- cfg to pdf
- cft to pdf
- cg4 to pdf
- cgr to pdf
- ch3 to pdf
- cht to pdf
- clk to pdf
- clp to pdf
- cmdx to pdf
- cmf to pdf
- cmv to pdf
- cpc to pdf
- crypt15 to pdf
- crypt9 to pdf
- csl to pdf
- ct to pdf
- ctb to pdf
- ctd to pdf
- ctt to pdf
- cui to pdf
- cur to pdf
- cut to pdf
- cv5 to pdf
- cvi to pdf
- dap to pdf
- db2 to pdf
- dcs to pdf
- ddp to pdf
- ddr to pdf
- dex to pdf
- dgn to pdf
- dhw to pdf
- dib to pdf
- dic to pdf
- dll to pdf
- dlv to pdf
- dochtml to pdf
- docmhtml to pdf
- dothtml to pdf
- dpa to pdf
- dps to pdf
- dpt to pdf
- dra to pdf
- draw to pdf
- drm to pdf
- drwdot to pdf
- drwprp to pdf
- ds4 to pdf
- dtx to pdf
- dvi to pdf
- dwd to pdf
- dwz to pdf
- dxb to pdf
- dxe to pdf
- eap to pdf
- edb to pdf
- ehi to pdf
- eip to pdf
- enl to pdf
- enlx to pdf
- enq to pdf
- ens to pdf
- ep to pdf
- epdf to pdf
- eprt to pdf
- ept to pdf
- erx to pdf
- esm to pdf
- etd to pdf
- etf to pdf
- ett to pdf
- exif to pdf
- faces to pdf
- far to pdf
- fdr to pdf
- fla to pdf
- flipchart to pdf
- flm to pdf
- fm3 to pdf
- fmk4 to pdf
- fmp to pdf
- fmv to pdf
- fodp to pdf
- fp to pdf
- fp4 to pdf
- fpt to pdf
- fpx to pdf
- frm to pdf
- frp to pdf
- fs to pdf
- ft11 to pdf
- ftmb to pdf
- ftmx to pdf
- ftw to pdf
- fuv to pdf
- fvu to pdf
- gbx to pdf
- gcode to pdf
- gdb to pdf
- gedcom to pdf
- gg to pdf
- ggr to pdf
- gl to pdf
- gpbank to pdf
- grd to pdf
- grind to pdf
- hdp to pdf
- hgl to pdf
- hpgl to pdf
- hsf to pdf
- ibatemplate to pdf
- ibm to pdf
- icbu to pdf
- icc to pdf
- icm to pdf
- ico to pdf
- idf to pdf
- idraw to pdf
- ies to pdf
- ig to pdf
- ildoc to pdf
- images2pdf to pdf
- imd to pdf
- indl to pdf
- innd to pdf
- ins to pdf
- inx to pdf
- ipv to pdf
- iqm to pdf
- iqy to pdf
- irs to pdf
- is2 to pdf
- ism to pdf
- ist to pdf
- ivp to pdf
- jar to pdf
- jet to pdf
- jhtml to pdf
- joboptions to pdf
- journal to pdf
- jpe to pdf
- jsf to pdf
- kdk to pdf
- kes to pdf
- key-tef to pdf
- knt to pdf
- kpg to pdf
- kqp to pdf
- kth to pdf
- lay to pdf
- lay6 to pdf
- lbr to pdf
- lbx to pdf
- ldt to pdf
- li3d to pdf
- library to pdf
- lic to pdf
- lmf to pdf
- lmk to pdf
- lmr to pdf
- lof to pdf
- ltx to pdf
- lxv to pdf
- m3d to pdf
- mac to pdf
- mad to pdf
- maf to pdf
- mars to pdf
- mat to pdf
- mbk to pdf
- mbm to pdf
- mcs to pdf
- md60 to pdf
- md70 to pdf
- mda to pdf
- mdbx to pdf
- mdk to pdf
- mdt to pdf
- menc to pdf
- mer to pdf
- mgmx to pdf
- mgx to pdf
- mhtm to pdf
- mi to pdf
- min to pdf
- mix to pdf
- mjd to pdf
- mmat to pdf
- mnl to pdf
- mnu to pdf
- mod to pdf
- mom to pdf
- mph to pdf
- mpo to pdf
- mrq to pdf
- msc to pdf
- msi to pdf
- msl to pdf
- msp to pdf
- msw to pdf
- mtx to pdf
- mvg to pdf
- mxdl to pdf
- mxp to pdf
- nbn to pdf
- ndr to pdf
- nlbl to pdf
- nmbtemplate to pdf
- npf to pdf
- npn to pdf
- null to pdf
- nxl to pdf
- oad to pdf
- obk to pdf
- odi to pdf
- olv to pdf
- oot to pdf
- opn to pdf
- osbx to pdf
- ospx to pdf
- otdr to pdf
- otg to pdf
- oth to pdf
- oti to pdf
- otp to pdf
- oxp to pdf
- p to pdf
- p7 to pdf
- p7c to pdf
- paf to pdf
- pan to pdf
- paper to pdf
- passbook to pdf
- pcb to pdf
- pcc to pdf
- pcg to pdf
- pcl to pdf
- pcn to pdf
- pde to pdf
- pdfa to pdf
- pf3 to pdf
- pfp to pdf
- pgp to pdf
- pix to pdf
- pj4 to pdf
- pka to pdf
- pld to pdf
- plf to pdf
- plmxml to pdf
- pm3 to pdf
- pmg to pdf
- pmp to pdf
- pnt to pdf
- pobi to pdf
- pop to pdf
- por to pdf
- ppa to pdf
- ppdf to pdf
- ppf to pdf
- ppt3 to pdf
- ppv to pdf
- ppz to pdf
- pre to pdf
- pro to pdf
- prs to pdf
- prtdot to pdf
- prv to pdf
- prz to pdf
- ps2 to pdf
- ps3 to pdf
- psdt to pdf
- psm to pdf
- pt3 to pdf
- pt5 to pdf
- pt6 to pdf
- pxd to pdf
- qcd to pdf
- qpt to pdf
- qwd to pdf
- qxb to pdf
- qxl to pdf
- rad to pdf
- rav to pdf
- raw to pdf
- rb to pdf
- rbc to pdf
- rels to pdf
- rem to pdf
- rf to pdf
- rft to pdf
- rhp to pdf
- rid to pdf
- riff to pdf
- rla to pdf
- rlb to pdf
- rmd to pdf
- rpd to pdf
- rsd to pdf
- rsm to pdf
- rtp to pdf
- rwt to pdf
- rwz to pdf
- s2db to pdf
- sab to pdf
- scd to pdf
- scdoc to pdf
- scr to pdf
- scriv to pdf
- sct to pdf
- sdk to pdf
- sdl to pdf
- sdox to pdf
- sdp to pdf
- sds to pdf
- sdv to pdf
- ser to pdf
- ses to pdf
- sfw to pdf
- sgl to pdf
- sgv to pdf
- sh3t to pdf
- shc to pdf
- shtm to pdf
- shw to pdf
- skd to pdf
- skv to pdf
- sl2 to pdf
- sl3 to pdf
- sla to pdf
- sldblk to pdf
- slddrt to pdf
- slddwg to pdf
- sldtbt to pdf
- sme to pdf
- smem to pdf
- sms to pdf
- snagproj to pdf
- snagx to pdf
- spba to pdf
- spf to pdf
- spk to pdf
- spl to pdf
- spl7 to pdf
- sqlite2 to pdf
- ssc to pdf
- ssi to pdf
- sta to pdf
- stb to pdf
- stc to pdf
- ste to pdf
- story to pdf
- stt to pdf
- studio to pdf
- studio3 to pdf
- svp to pdf
- swp to pdf
- sxe to pdf
- syn to pdf
- sza to pdf
- ta2 to pdf
- ta4 to pdf
- ta6 to pdf
- tc2 to pdf
- tc3 to pdf
- tcd to pdf
- tcp to pdf
- tct to pdf
- tdf to pdf
- tdl to pdf
- tdm to pdf
- texi to pdf
- tf to pdf
- tgz to pdf
- themepack to pdf
- tlp to pdf
- tmd to pdf
- top to pdf
- tsf to pdf
- tst to pdf
- u12 to pdf
- uhtml to pdf
- ulp to pdf
- usr to pdf
- vbd to pdf
- vda to pdf
- vdp to pdf
- vectornator to pdf
- vi to pdf
- vlx to pdf
- vml to pdf
- vstm to pdf
- vw to pdf
- vwi to pdf
- w52 to pdf
- wb2 to pdf
- wb3 to pdf
- wbd to pdf
- wbm to pdf
- win to pdf
- wk5 to pdf
- wkq to pdf
- wnk to pdf
- wpostx to pdf
- wpp to pdf
- wpw to pdf
- wq1 to pdf
- wrf to pdf
- xaml to pdf
- xbc to pdf
- xcel to pdf
- xcmd to pdf
- xdoc to pdf
- xdp to pdf
- xff to pdf
- xgml to pdf
- xl to pdf
- xla to pdf
- xlam to pdf
- xlc to pdf
- xlk to pdf
- xmct to pdf
- xmls to pdf
- xmp to pdf
- xpt to pdf
- xss to pdf
- xtg to pdf
- xtp2 to pdf
- xwd to pdf
- ygf to pdf
- zbr to pdf
- zdb to pdf
- zdp to pdf