SQL Rows to JSON
Convert SQL query results to JSON online. Reads psql output, MySQL console boxes and INSERT statements. Free and private.
Query output
Stays in your browserJSON
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to JSON Beautifier, JSON to CSV or JSON Visualizer.
Free Online SQL Rows to JSON
Copy the result of a query from your database console, paste it here and get JSON. psql tables, MySQL boxes and INSERT statements are recognised automatically. It gives developers a quick browser-based way to solve a focused sql rows to json task before moving the result into a project.
How to use SQL Rows to JSON
Paste your data into the box on the left, or open a file, then press Convert. Paste the table exactly as the console shows it, including the header and separator lines. Numbers and NULL are converted to JSON numbers and null.
Common mistakes
- Pasting a table without its header line: the first line is used as the column names.
- Pasting output that was cut or wrapped by a narrow terminal: lines must be complete.