Skip to main content
Mofumi PDF

JSON to PDF

Pretty-print JSON into a syntax-coloured PDF in a light or dark theme.

100% Private — files never leave your device
Upload filesDrop files here or click to chooseMax files: 50Accepted: JSON, JSONL, NDJSON, GEOJSON Files never leave your device

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. 1

    Add .json files or paste JSON.

  2. 2

    Choose indentation and theme.

  3. 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