Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsSQL to JSON ConverterSQL Dump to JSON

SQL Dump to JSON

dev

Read a mysqldump, pg_dump or sqlite3 .dump file and get every table as JSON

Runs in your browser. Nothing you type is sent anywhere. Checked against sources on 17 Oct 2026.

A database dump holds every table as CREATE TABLE and INSERT statements, or as COPY blocks in a pg_dump file. Open it here and get one JSON object with each table as an array of rows. Column types come from the CREATE TABLE, so integers, decimals, booleans and JSON columns stay typed, and whole numbers longer than 15 digits are kept as exact strings.

Next:
  • JSON Formatter & Validator Format, validate, minify and sort JSON with exact error positions
  • JSON to SQL Converter JSON to CREATE TABLE and INSERT statements for PostgreSQL, MySQL, SQLite or SQL Server

How to use SQL Dump to JSON

1

Paste or type your input.

2

Choose the options you need.

3

Press Ctrl+Enter, then copy or download.

How SQL Dump to JSON works

A .sql file is the most common way data gets handed over, and the least convenient one to read when you have no database to load it into. This page reads the data straight out of the SQL text.

Source What it looks like Read as
mysqldump INSERT INTO t VALUES (...),(...); with backslash escapes Rows, MySQL escapes
pg_dump (default) COPY public.t (a, b) FROM stdin; tab-separated lines, then \. Rows, \N as null
pg_dump --inserts INSERT INTO public.t VALUES (...); Rows
sqlite3 .dump INSERT INTO "t" VALUES(...); Rows
Hand-written SQL INSERT INTO t (a, b) VALUES (...); Rows

What you get. Pick a table to see it as a JSON array of objects or as CSV, or take every table at once as one JSON object. A row whose value count does not match its columns is skipped and listed with its line number, never silently shifted.

The rest of the article, and all 6 questions about SQL to JSON Converter, are on the SQL to JSON Converter page.

Frequently asked questions

How do I convert SQL INSERT statements to JSON?

Paste the statements or open the .sql file. Each INSERT INTO table VALUES row becomes an object whose keys are the column names, taken from the INSERT's column list or from the CREATE TABLE in the same file. Pick the table if there are several, then copy the JSON array or download it.

Can I open a .sql file in Excel?

Not directly: Excel does not read SQL. Open the file here instead, choose the table and switch the output to CSV. The CSV has a header row and quotes values that contain commas or line breaks, so it opens in Excel, Google Sheets or LibreOffice with every column in place.

Why do some numbers come out as strings?

Whole numbers longer than 15 digits, such as 20-digit IDs, cannot be held exactly by JavaScript or by most JSON readers, so they are kept as strings with every digit. Values in a text column that look like numbers, such as the code 007, stay text because the column is declared as text.

Is my SQL file uploaded anywhere?

No. The file is read in your browser tab, and nothing is sent to a server or stored. Database dumps often contain customer data, so keeping them on your device matters; you can also use the page offline once it has loaded.

Sources

  • PostgreSQL 17 documentation, COPYThe text format pg_dump writes: tab-separated, \N for NULL, backslash escapes, ended by \.
  • PostgreSQL 17 documentation, pg_dumpCOPY by default; --inserts and --column-inserts write INSERT statements
  • MySQL 8.4 Reference Manual, String LiteralsThe backslash escapes in mysqldump output: \0 \' \" \b \n \r \t \Z \\
  • SQLite, INSERTINSERT INTO ... VALUES with several rows, as sqlite3 .dump writes it

Last verified 17 October 2026.

Rates and rules change; check the source before you rely on a figure.

Still stuck? Ask about SQL to JSON Converter and anybody who knows can answer. No account needed.

More ways to use SQL to JSON Converter

  • SQL to JSON ConverterTurn SQL INSERT statements or a database dump into JSON or CSV, table by table
  • SQL to CSV ConverterTurn INSERT statements or a .sql dump into a CSV file that opens in Excel

Same job, other tools: TSV to JSON – Convert tab-separated values, such as a paste from Excel, into JSON · JSON to YAML – Turn JSON into clean, readable YAML for configs · Query String Parser – Split a URL query string into a table of decoded parameters.

Related tools

All developer tools
Base64 Encode & DecodeText and files to Base64 and back, with URL-safe mode and image previewUnix Timestamp ConverterUnix timestamps to dates and dates to timestamps, in any time zoneJSON to TypeScriptGenerate TypeScript interfaces or types from a JSON sampleCSV to JSONConvert CSV to JSON and JSON to CSV, with a table previewYAML to JSONConvert YAML to JSON and JSON to YAML, with anchors resolvedURL Encoder / DecoderPercent-encode or decode text and URLs, and see every part of a linkColor ConverterHEX, RGB, HSL, HWB, OKLCH and CMYK in both directions, with a contrast checkNumber Base ConverterBinary, octal, decimal, hex and any base to 36, exact at any size, with two's complement
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)