SQL Diff

Compare two pieces of SQL as SQL: both sides are formatted the same way first, so only real changes show. When both define tables, you also get a list of schema changes and the migration that turns one into the other.

Features

How to use it

  1. Paste the original SQL on the left and the modified SQL on the right.
  2. Pick the dialect; formatting differences disappear.
  3. Read the side-by-side diff, the statement list, or for schemas the changes and the migration.

FAQ

Why compare SQL instead of plain text?

Two queries can be the same with different spacing, line breaks or keyword case. Reformatting both sides first leaves only the differences that change what the SQL does.

Can it generate a migration?

Yes, when both sides contain CREATE TABLE statements: it writes CREATE TABLE, ALTER TABLE ADD/DROP/ALTER COLUMN, foreign keys and DROP TABLE statements for the chosen dialect. Renames look like a drop plus an add, and SQLite gets comments where it can’t alter a column, so review it before running.

Is my SQL uploaded?

No. Everything runs in your browser.

More developer tools

API Studio

Build, test and automate HTTP requests right in your browser.

  • API Studio: Build, test and automate HTTP requests: collections, environments, tests and a runner.

Diagrams

Draw cloud architectures and watch the data flow.

  • Architecture Builder: Draw cloud architectures and data flows with AWS, Azure, GCP and 1,000+ components.

CI/CD

See, edit and check your CI/CD pipelines.

  • Pipeline Studio: See and edit your Bitbucket pipelines as a metro map, with checks for mistakes Bitbucket would reject.

Data

Query, browse and edit data files and SQLite databases.

  • Database Studio: Query, browse and edit CSV, Excel, Parquet and SQLite files with SQL, right in your browser. Nothing is uploaded.

System Design

Simulate traffic through a system design and find its limits.

  • System Design Simulator: Design a system, send it traffic and watch where it melts: latency, errors and the bottleneck.

Team Knowledge

Every error your team has hit, and how it was fixed.

  • Error Memory: Search every error your team has hit and how it was fixed; log new ones with their fix.

Codebase

How your services and flows really work.

  • Code Flow Map: See how your codebase works: services and business flows, every step linked to its code.

Formatters & Beautifiers

Make messy payloads, queries and markup readable.

  • JSON & Log Formatter: Repair, beautify and deep-decode JSON, Python dicts and log lines.
  • SQL Formatter: Pretty-print queries for 12 SQL dialects.
  • XML / HTML Beautifier: Beautify or minify HTML and XML, with validation.
  • JSON Diff: Compare two payloads side by side or as a change list.
  • SQL Diff: Compare queries, scripts or schemas as SQL, with schema changes and the migration.
  • JQ / JSONPath: Filter JSON with jq or JSONPath expressions.

Encoders & Decoders

Look inside tokens, encodings and escaped text.

Generators

IDs, hashes, keys, placeholder text and typed code.

Converters

Move data between formats, times and color spaces.

API & Debugging

Reproduce requests, read errors and sanitise logs.