Code utilities

SQL Formatter

Format SQL queries, switch database dialects, minify snippets, and copy clean SQL locally.

SELECT
  u.id,
  u.email,
  count(o.id) AS orders
FROM
  users u
  LEFT JOIN orders o ON o.user_id = u.id
WHERE
  u.created_at >= now() - interval '30 days'
GROUP BY
  u.id,
  u.email
HAVING
  count(o.id) > 0
ORDER BY
  orders DESC
LIMIT
  20;

Features

Dialect Options

Format common SQL dialects including PostgreSQL, MySQL, BigQuery, SQLite, and T-SQL.

Case Controls

Choose uppercase, lowercase, or preserved keyword casing.

Indentation

Tune tab width, expression width, and operator newline behavior.

Minify Mode

Collapse whitespace for compact query strings and config values.

Copy Output

Copy formatted or minified SQL directly from the result panel.

Local Workspace

Queries are formatted in the browser with no database connection.

Frequently Asked Questions

No. It only formats text locally and never connects to a database.

Use the dialect closest to your database. PostgreSQL is a good default for common SQL syntax.

Yes. The minify option collapses whitespace while preserving the query text.

A growing collection of fast, privacy-first developer utilities. All tools run in your browser — your data never leaves your device.

Tools

JSON ParserJSON Schema ValidatorJSON ConverterJSON to TypeScriptOpenAPI ViewerCode FormatterSQL FormattercURL ConverterTimestamp ConverterCron ParserURL EncoderQR Code ToolIP & CIDR CalculatorGzip & Deflate ToolJWT DecoderJWT Verify & JWK ToolHash GeneratorPassword & TOTPBase64 EncoderUUID GeneratorImage MetadataImage CompressionTiny Image CompressorImage Toolkit ProScreen RecorderRegex TesterText DiffMarkdown & Mermaid PreviewColor & Contrast Tool

Legal

Privacy PolicyTerms of Service

© 2026 ZPTools. All Rights Reserved.