SQL Formatter
Paste raw or minified SQL and format it into a readable, indented statement with each major clause on its own line. This is a best-effort, regex-based formatter for readability — not a full SQL parser or validator, so always double-check the output for complex or unusual queries.
Formatted SQL will appear here.How it works
The formatter collapses extra whitespace and then inserts a line break before each major clause keyword — SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, and so on — indenting AND/OR conditions slightly since they usually belong inside a WHERE clause.
Tip
This is a lightweight, best-effort formatter based on keyword matching, not a real SQL parser — it won't validate your syntax or understand nested subqueries perfectly, so always review the result before running it.
More tools in this category
Regex Tester
Test regular expressions against sample text with live match highlighting.
Cron Expression Parser
Parse a 5-field cron expression into a plain-language schedule and see its next run times.
Text Encoding Converter
Convert text to UTF-8 hex, binary, code points, Base64, URL encoding and HTML entities at once.
Password Generator
Generate strong, random passwords instantly, right in your browser.
JSON Formatter & Validator
Format, validate, and minify JSON instantly in your browser.
UUID Generator
Generate random, RFC 4122 version 4 UUIDs instantly in your browser.
JWT Decoder
Decode and inspect JSON Web Tokens (JWTs) instantly in your browser.
Diff Checker
Compare two blocks of text and instantly see every line that was added or removed.
Slug Generator
Turn any text into a clean, URL-friendly slug in real time.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly.
Unix Timestamp Converter
Convert Unix timestamps to dates and dates to Unix timestamps, live.
Hash Generator
Generate SHA-1, SHA-256, and SHA-512 hash digests from any text, right in your browser.
Box Shadow Generator
Design a CSS box-shadow visually with live sliders and a color picker, then copy the generated declaration.
Cron Expression Builder
Build a valid 5-field cron expression from a friendly form — no need to memorize the syntax.
Lorem Ipsum Generator
Generate placeholder Lorem Ipsum text by paragraphs, sentences, or words for mockups and layouts.
Markdown Previewer
Write Markdown on the left and see the rendered HTML update live on the right.
IP Subnet Calculator
Enter an IPv4 address in CIDR notation and get its network, mask, broadcast, and host range.
HTTP Status Code Lookup
Look up any HTTP status code and see its standard meaning in plain English.
Image to Base64 Converter
Convert an image into a Base64 data URI you can paste straight into HTML, CSS, or JSON — entirely in your browser.
Semver Comparator
Compare two semantic version strings and see which one takes precedence, following the official semver rules.