SQL to JSON Converter

Convert SQL INSERT statements into JSON objects. Free, private and instant: everything runs in your browser.

SQL INSERT statements
JSON
Result appears here as you type

What does the SQL to JSON Converter do?

A SQL to JSON converter parses INSERT INTO ... VALUES statements, including multi-row inserts, quoted strings, NULL, numbers and booleans, and returns one JSON object per row keyed by column name. It turns database dumps into data you can use in JavaScript.

How to use the SQL to JSON Converter

  1. 1

    Paste your sql insert statements

    Paste or type sql insert statements into the input box, open a file from your device, or click Sample to load an example.

  2. 2

    Convert instantly

    The SQL to JSON Converter processes your input right in the browser.

  3. 3

    Copy or download the result

    Review the json on the right, then copy it to the clipboard or download it as a .json file.

SQL to JSON Converter example

Input
INSERT INTO users (id, name, city, active) VALUES (1, 'Asha', 'Pune', true), (2, 'Ravi O''Neil', NULL, false);
Output
[
  {
    "id": 1,
    "name": "Asha",
    "city": "Pune",
    "active": true
  },
  {
    "id": 2,
    "name": "Ravi O'Neil",
    "city": null,
    "active": false
  }
]

When to use it

  • •Turning seed data or dumps into JSON fixtures
  • •Migrating data from SQL to NoSQL
  • •Inspecting dump contents

Why use this sql to json converter

  • 100% free, no signup or login
  • Runs locally: your data never leaves the browser
  • Instant results with clear error messages
  • Works on desktop, tablet and mobile
  • Copy to clipboard or download in one click
  • No watermarks and no usage limits

Frequently asked questions

Is the SQL to JSON Converter free?+

Yes. The SQL to JSON Converter is 100% free with no signup, no login, no usage limits and no watermark. It works on desktop and mobile browsers.

Is my data uploaded when I use the SQL to JSON Converter?+

No. The SQL to JSON Converter runs entirely in your browser with JavaScript. Nothing you paste or upload is sent to our servers, logged or stored.

Last updated by the Imaginex AI team.