Skip to content
CastPDF
Free tool

JSON to PDF converter

Paste a JSON array and get it back as a readable PDF table, with one row per object and one column per key. It is the quickest way to share API output with someone who does not read JSON. The converter is free and uses the engine of our PDF generation API.

  • No sign-up
  • Nothing stored
  • Updated

Try it now

An array of objects or of arrays. Up to 500 rows and 50 columns.

Free, no sign-up. Nothing is stored. A short human check runs when you press the button.

Page one of the PDF made from the sample JSON: a product table with SKU, product, colour, stock and price columns.
The sample product list as a PDF table.

How to use the JSON to PDF

  1. Paste a JSON array. An array of objects, such as [{ "sku": "MUG-01", "stock": 148 }]. The sample is a product list.
  2. Check it parses. The tool checks the JSON in your browser first and points to the line with a missing comma or quote.
  3. Add a title. Optional. It prints above the table and names the file.
  4. Convert and download. Press Convert to PDF to get the table as a PDF.

The JSON shapes it understands

JSON shapes and the table each one makes
Your JSONThe table
An array of objectsOne row per object; the columns are every key, in the order first seen
An array of arraysThe first array is the header row; each further array is a row
Nested objects or arrays in a valuePrinted as compact JSON inside the cell
Missing keys in some objectsAn empty cell, so the columns stay aligned

A single object, or an array of plain numbers, has no rows and columns to show. Wrap a single record in square brackets to print it as a one-row table.

A table, or a designed document?

This tool answers a simple question: what is in this JSON? It prints the data as it is, as a neat table. That is perfect for exports, audits and handing data to a colleague.

When the JSON describes a document, such as an order that should look like an invoice, you want a template instead. A template places each value where it belongs, with your logo and layout. The JSON to PDF guide shows how a template turns the same data into a finished page.

Where the JSON usually comes from

  • An API response. Copy the array from your browser’s network panel or from a tool such as curl.
  • A database export. Most databases can export a query result as a JSON array of rows.
  • A no-code tool. Automation tools often pass data along as JSON; paste a sample to see it as a table.

If the array sits inside a larger object, copy only the array. For example, take the value of items from { "items": [ ... ] }.

Tips for a clean result

  • Keep keys short: they become the column headings.
  • Remove fields nobody needs to read, such as internal ids, before you convert.
  • Format numbers in your data the way you want them printed; the tool does not round.
  • More than six columns? The table prints in landscape automatically.

Limits of the free tool

Limits of the free tool
InputUp to 500 KB, 500 rows and 50 columns
OutputA PDF table of up to 20 pages on A4
Not supportedA single object or a plain list of values as the top level
How often10 requests a minute and 100 a day from one address
On every PDFA small "Made with CastPDF" line in the footer

Automate this

Doing this every week? The same engine runs behind the CastPDF API, with no footer on paid plans and 100 free PDFs a month to start.

With the API

Send the JSON as data to a saved template on POST /v1/pdf; the template decides the layout. The quickstart shows the first request.

From a spreadsheet

Many records at once? Send them as a batch: one item per record, one PDF each, all in one ZIP.

In a no-code workflow

Common questions

What if my JSON is not an array?

The tool needs an array of objects or of arrays. Wrap a single object in square brackets, or pick the array inside your response, such as the value of a data key.

Is my JSON sent anywhere else?

It goes only to the CastPDF API, once, to render the table. Nothing is stored, and the content is never logged.

How are nested objects shown?

As compact JSON text inside the cell. For a nicer layout of nested data, use a template with the API.

How many rows can the JSON to PDF converter take?

Up to 500 rows and 50 columns, and 500 KB of JSON. The PDF can have up to 20 pages.

Can I turn JSON into an invoice instead of a table?

Yes, with a template. Try the free invoice generator for a one-off, or send your JSON to the invoice template through the API.
All free tools

Your first PDF in five minutes.

Pick a template, create a free test key and send one request. 100 PDFs a month are free, and you never need a card to start.