Skip to main content
>_devtools

SQL Parser & AST Viewer

Parse SQL into an abstract syntax tree, list the tables and columns it touches, and get syntax errors with line and column.

Parse SQL to inspect its syntax tree, tables, and columns, or review regenerated SQL. Select a database dialect and view the summary, AST JSON, or rebuilt statements.

Example

Input (PostgreSQL)
SELECT u.id FROM public.users u WHERE u.active = TRUE

Summary
Tables: public.users
Columns: id, active
Statement: SELECT

Limits and behavior

  • Common DML and DDL are supported; vendor-specific procedural syntax may be rejected.
  • A parse failure does not prove that a database rejects the query.
  • Input is limited to 10 MB and parsed in a browser worker.