SQL Script to JSON
Convert SQL to JSON offline. Review decoded rows from a MySQL, MariaDB, or PostgreSQL dump, choose the tables you want, and download one JSON file.
- Free
- Works Offline
- No Uploads
How to Convert SQL to JSON
- Open the HTML, review Security Check, then select Continue.
- Select MySQL, MariaDB, or PostgreSQL and open a UTF-8 SQL dump, or choose Open Sample.
- Review the decoded records and select the tables to export.
- Choose Indented or Compact, create the JSON, and download the separate file.
SQL Script to JSON Features
- Convert SQL INSERT statements to JSON records and browse field values before exporting.
- Choose the tables to include and download either indented or compact JSON.
- Preserve NULL, Unicode, and leading zeros in quoted text. Large integers and exact decimal literals stay readable as strings.
Formats and Compatibility
| Input | A UTF-8 MySQL, MariaDB, or PostgreSQL plain-text SQL dump with ordinary table definitions and literal rows. PostgreSQL default text COPY FROM STDIN is also supported. |
|---|---|
| Output | One JSON file with the selected tables as keys and their records in source order. |
| Browser | A modern browser with local file support. |
| Scope | UTF-8 dumps up to 32 MiB. Use ordinary table definitions and literal rows. Commands and expressions are unsupported. |
| Operating Systems |
Local Processing Without Uploads
This local SQL to JSON tool is browser-based and free. There is no upload, account, or database connection.
Select Open Sample to see the workflow with the included example.
Supported SQL Dumps and JSON
Select the dump dialect before opening a file. Use full-column literal INSERT rows or default PostgreSQL text COPY FROM STDIN. A script with expressions, missing values, or unsupported commands is rejected. Tested in Microsoft Edge on Windows.
Check the Decoded Rows
Browse each table and page through records. Choose which tables to export. JSON stores safe integers as numbers and SQL NULL as null. Large integers, decimal and floating-point literals, and hexadecimal bytes use strings.
Frequently Asked Questions
Can I convert SQL to JSON offline?
Yes. Extract the download and open SQLScriptToJSON.html in a modern browser.
Where is the SQL to JSON download?
Select Download Tool ZIP and extract the included HTML. Select Download JSON after converting a source file.
What does the local SQL to JSON tool support?
It reads ordinary table definitions and literal rows in UTF-8 MySQL, MariaDB, and PostgreSQL dumps. Use every column in each row.
Can I convert SQL to JSON without uploading files?
Yes. Source parsing and output generation happen on your device.
Is this a free SQL to JSON tool?
Yes. The standalone HTML is a free Local Studio download.
How do I convert SQL to JSON in browser mode?
Open the standalone HTML, choose a dialect and local SQL file, review records, and select Create JSON.
How do you convert SQL INSERT statements to JSON?
The reader checks literal values against the table definitions. Each selected table becomes an array of record objects. The reader rejects computed values, SQL commands outside the supported dump syntax, and incomplete rows.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.