Convert your SQL table or database export to JSON or Javascript. Copy/paste or upload your SQL export to convert it. When converting to Javascript, one variable is created per table.

Ctrl + A then Ctrl + C to copy to clipboard.

About SQL to JSON

  • Works by detecting CREATE TABLE and INSERT INTO statements, in order to create an object representation of the tables.

Change Log

  • Sep 4, 2017 Parsing bug fix: GitHub Issue #22.
  • Sep 29, 2016 Bug fix GitHub Issue #11 - support multile values in single-line INSERT INTO statement.
  • Jan 12, 2014 Initial release.


Code available on Github. Report bugs or ask for improvements either through Github issues or by writing a Disqus comment.