SQL to JSON

Format SQL and wrap it as JSON for APIs, tests, and debugging.

Pretty-print SQL.
Wrap as JSON for sharing.
Runs in the browser.
Copy-friendly output.

Frequently Asked Questions

Does this execute SQL?
No. This tool formats SQL text and wraps it in JSON for convenience.
Can I change JSON shape?
The default output is a simple object. You can edit the result afterward.