Table Grid

Paste a JSON array of objects below to see it as a sortable, searchable table. Each object becomes a row, and the keys become columns.

JSON to Table Online — Search, Sort and Export JSON Data

JSONLab JSON to Table is a free, browser-based JSON to table converter that turns an array of objects into a readable data grid. Paste JSON and each object becomes a row while its keys become columns. The resulting JSON to table viewer can search every cell, filter individual columns, sort records, resize columns and download the current view as JSON or CSV, all without sending the document to an application server.

Use the right JSON structure for a table

Tabular data should use a top-level array whose items are objects. For example:

[
  { "id": 1, "name": "Ada", "active": true },
  { "id": 2, "name": "Linus", "active": false }
]

The array supplies the records, each object supplies one row, and the union of top-level keys supplies the columns. A property that is missing from one object appears as an empty cell. A lone object, mixed array or array of primitive values is not treated as a table. Nested objects and arrays stay as compact JSON inside a cell; this JSON to table formatter does not recursively flatten them.

How to convert JSON to a table online

  1. Paste a valid JSON array of objects into the input area.
  2. Review the automatically generated rows, columns and cell values.
  3. Search all columns or add a filter beneath a specific heading.
  4. Sort or resize columns, then download the visible view as JSON or CSV.

If the document has invalid syntax, use the JSON Viewer and Validator to locate the problem. If the source is CSV, YAML, XML or TOML, convert it to JSON first with the JSON Converter, then make sure the root result is an array of objects.

Search, filter and sort with a JSON table visualizer

Global search performs a case-insensitive match across available cells. Column filters can be combined to narrow the result further, and column headers toggle ascending or descending order. Numbers sort numerically; other values use text ordering. Drag a header divider to make a column wider or narrower. The JSON to table visualizer uses virtualized scrolling rather than pagination, so it draws only the rows needed around the current viewport while you explore a large result.

Excel and Python JSON to table workflows

For an Excel JSON to table workflow, build the table, choose CSV, download the filtered and sorted rows, and open the file in Excel. This is also the practical way to convert JSON to an Excel table; JSONLab does not generate native XLSX workbooks. In Python, a common Python JSON to table workflow uses pandas.read_json() or pandas.DataFrame() after loading the array. The browser viewer is useful for checking the shape and values before writing that script.

Preparing JSON for SQL and PostgreSQL

A visual table can help identify candidate SQL columns, but database schemas also need explicit types, keys, nullability and constraints. JSONLab does not generate CREATE TABLE statements or connect to a database. For PostgreSQL, keep flexible documents in a jsonb column or map stable properties into relational columns, then insert them with parameterized SQL through your database client. Review nested values and inconsistent types carefully before importing production data.

Download the current view privately

The Download control exports exactly the current filtered and sorted rows as JSON or CSV. Files are created locally in the browser, so there is no server-side export job. Smaller shared documents may persist in session storage while you move between JSONLab pages; clear the data or close the session when finished. This makes the JSON to table online workflow convenient for inspecting API results, reports and test data without creating an account.

Frequently asked questions about converting JSON to a table

How to convert JSON to an Excel table?

Paste a top-level JSON array of objects into the JSON to Table tool. After the rows appear, select CSV and download the current view, then open that .csv file in Excel and optionally save it as an Excel workbook. JSONLab does not create native .xlsx files, but CSV preserves the visible rows and columns for Excel.

How to create a table from JSON data?

Represent the data as an array where every item is an object, then paste it into the tool. Each object becomes a row, and the union of its top-level keys becomes the columns. Missing properties produce empty cells. You can then search, filter, sort and resize the generated table.

How to represent a table in JSON?

Use an array of consistently shaped objects, for example [{ "id": 1, "name": "Ada" }, { "id": 2, "name": "Linus" }]. The array represents the table, each object represents one row, and each object key represents a column. Keep comparable values under the same key across rows.

How to create a SQL table from JSON data?

Inspect the JSON keys and sample values, choose an appropriate SQL type for each column, and write a CREATE TABLE statement such as CREATE TABLE people (id integer, name text);. JSONLab helps you view the rows and columns but does not generate SQL. Validate optional fields, nested values and type variations before finalizing the schema.

How to insert JSON data into a PostgreSQL table?

For intact documents, create a jsonb column and use a parameterized statement such as INSERT INTO events (payload) VALUES ($1::jsonb). To create relational rows, define columns and use PostgreSQL functions such as jsonb_to_recordset after validating the shape. JSONLab does not connect to PostgreSQL; use your database client or application driver for the insertion.

What JSON format is required for the table viewer?

The root value must be an array, and every array item must be an object. A single object, an array of strings or numbers, or a mixed array is rejected. An empty array is valid but has no rows or columns to display.

Does the JSON to table converter flatten nested objects?

No. Columns come from top-level keys only. A nested object or array remains compact JSON text inside its cell rather than being expanded into additional columns. Flatten nested data before pasting it if you need one column per nested property.

Can I search, filter and sort the JSON table?

Yes. Global search checks all visible cell values, each column has its own filter, and selecting a column heading toggles ascending or descending sorting. Numeric values sort numerically, other values sort lexicographically, and column widths can be resized by dragging their dividers.

Which table formats can I download?

You can download the current filtered and sorted view as JSON or CSV. CSV fields are quoted when needed for commas, quotes or line breaks. Native Excel, SQL and database-specific exports are not available.

Can the JSON to table visualizer handle large datasets?

The table uses virtualized scrolling, which renders only the rows needed for the current viewport and helps large arrays remain responsive. Performance still depends on document size, column count and the browser. There is no pagination control; search, filters and the scrollable grid are used to navigate the data.

Is my JSON uploaded when I create a table?

No. Parsing, filtering, sorting and downloads happen in your browser, and exported files are created with local Blob URLs. Smaller shared JSON documents may remain in session storage so they are available across JSONLab tools. Clear the document or close the session when finished with sensitive data.