SQL Formatter
Paste SQL and pretty-print it in your browser — indentation, uppercase keywords, and a copyable result. Nothing is uploaded.
- Pretty-print
- Generic SQL
- Copy result
Generic SQL pretty-print in this tab. Keywords are uppercased and clauses are indented. Dialect-specific extensions (Postgres, MySQL, SQL Server, SQLite) usually still format. Nothing is uploaded.
Paste a query to pretty-print it with indentation, then copy the result.
A SQL formatter turns a minified or hand-typed query into a readable layout. Paste a statement, and this page splits clauses onto their own lines, indents select lists and join conditions, and uppercases reserved words so SELECT, FROM, and WHERE are easy to scan.
Nested subqueries in parentheses get another indent level. JOIN / ON, AND / OR, and CASE / WHEN follow the same rules. String literals and comments are left alone, so a quoted from does not become a clause.
Everything stays in this tab — no upload, no account. Need random IDs for a fixture? Open the UUID generator. To inspect a token, use the JWT decoder. For a crontab line, try the cron expression generator. Check structured data with the schema markup validator. More utilities live on the Developer and SEO hubs.
How to use the SQL formatter
- Paste a query into the SQL box, or load the sample.
- Read the pretty-printed output with indented clauses.
- Optionally press Format to replace the input with that output.
- Copy the formatted SQL into an editor, ticket, or client.
- Clear the box when you are done. Nothing is stored.
Frequently asked questions
What is a SQL formatter?
A SQL formatter pretty-prints a query so clauses, joins, and lists are easier to read. Paste SQL, indent SELECT / FROM / WHERE blocks, then copy the formatted statement. This page runs entirely in your browser.
Does this SQL formatter change how my query runs?
No. Formatting only changes whitespace and reserved-word casing. Identifiers, string literals, and comments stay as you pasted them. Run the output in your own database client if you need to confirm behavior.
Which SQL dialects does this formatter support?
Generic SQL is the default. Common PostgreSQL, MySQL, SQL Server, and SQLite queries usually format well. Vendor-only tokens are left as written. There is no dialect picker and no server-side parser.
Is my SQL uploaded to a server?
No. Paste, format, and copy stay in this tab. We do not log, store, or send queries. Use it on confidential statements the same way you would a local editor plugin.
Can I format SELECT, INSERT, UPDATE, and DELETE?
Yes. The formatter recognizes those statements plus JOIN / ON, GROUP BY, ORDER BY, HAVING, LIMIT, UNION, CASE, and nested subqueries in parentheses. Multiple statements separated by semicolons are formatted one after another.
Does the SQL formatter uppercase keywords?
Yes. Reserved words such as SELECT, FROM, and WHERE are written in uppercase. Table names, column names, and quoted identifiers keep the casing you typed.
What happens to comments and string literals?
Line comments (-- …) and block comments (/* … */) are kept. Text inside quotes is not parsed as SQL, so a string like 'from' will not start a FROM clause.
Can I copy the formatted SQL?
Yes. After you paste a query, use Copy on the formatted result, or press Format to replace the input box with the pretty-printed SQL. Clear removes both.
Other tools
Finance
Stock Average Calculator
Weighted average cost, total shares, break-even price, and unrealized P/L from multiple lots.
Finance
Paycheck Calculator Hourly
Gross pay per paycheck from an hourly rate or salary — weekly, biweekly, semimonthly, or monthly.
Finance
Emergency Fund Calculator
Target emergency savings from monthly essential expenses, plus the gap and months to fully fund.
Finance
Mortgage Recast Calculator
New monthly payment, payment drop, and interest savings after a lump-sum recast — same remaining term, not a refinance.
Finance
Refinance Calculator Auto Loan
Current vs new monthly payment, interest, fee break-even, and total cost for an auto loan refinance — all in the browser.
Finance
Real Estate Commission Calculator
Total commission, listing-side and buyer-side dollars, and seller net proceeds from a home sale — all in the browser.
Finance
Credit Utilization Calculator
Overall credit utilization %, available credit, per-card ratios, and dollars to pay to reach a target — all in the browser.
Finance
403b Calculator
Employee contributions, optional employer match, and projected 403(b) balance at retirement — all in the browser.
Finance
Monthly Budget Template
Monthly income and expense lines with totals, leftover surplus or deficit, and savings rate — all in the browser.
Finance
VAT Number Validator
VAT number validator and VAT number checker for EU (and legacy GB) IDs — format, country, and check digits in the browser. Not a VIES lookup.
Finance
Break Even Sales Calculator
Break-even units, sales revenue, and contribution margin from fixed costs, variable cost, and price — optional target profit. All in the browser.
Finance
Bottleneck Calculator
Bottleneck step, system throughput, and utilization % from each step’s capacity — Theory of Constraints, all in the browser.
Finance
Time Card Calculator
Total a week of start and end times with unpaid breaks in h:mm and decimal hours, split overtime after 40 hours, and estimate gross pay — all in the browser.
Finance
Date Calculator
Count the days between two dates, or add and subtract days, weeks, months, and years from any date — all in the browser.
Finance
Amortization Calculator
Monthly payment, total interest, and a full monthly or yearly amortization schedule for any fixed-rate loan, with optional extra payments — all in the browser.
Finance
Tip Calculator
Tip amount, total with tip, and per-person split from a bill and a 15%, 18%, 20%, 25%, or custom tip — optional round up, all in the browser.
Finance
Overtime Calculator
Regular pay, overtime pay, and total gross from hourly rate, regular/OT hours or total hours with a weekly threshold — default 1.5×, all in the browser.
Finance
APR Calculator
Monthly payment, estimated APR, total interest, and total cost for a fixed installment loan — optional upfront fees reduce net proceeds, all in the browser.
Finance
Student Loan Refinance Calculator
Current vs new monthly payment, total interest, estimated savings vs the current loan, and fee break-even for a student loan refinance — all in the browser.
Finance
Balance Transfer Calculator
Stay-put vs promo APR payoff, transfer fee, months to pay off, total interest, and estimated savings for a credit card balance transfer — all in the browser.
Finance
Purchasing Power Calculator
Equivalent buying power across years, % change in purchasing power, and a plain-language inflation summary — average rate or CPI indexes, all in the browser.
Finance
Straight Line Depreciation Calculator
Annual straight-line expense, depreciable basis, optional monthly (annual ÷ 12), and a year-by-year book-value schedule — all in the browser.
Finance
CD Rate Calculator
Ending balance, interest earned, APY or interest rate, and a year-by-year schedule from deposit, term, and compounding — all in the browser.
Finance
Markup Calculator
Selling price, profit dollars, markup %, and margin % from cost plus markup percent or selling price — all in the browser.
Finance
Percent Off Calculator
Discount amount, sale price, and percent off from original price plus percent off, sale price, or dollars off — all in the browser.
Finance
Discount Calculator
Sale price, discount dollars, and discount % from list price plus % or $ off — plus reverse (sale + % → original) and stacked/successive percent discounts. All in the browser.
Finance
Future Value Calculator
Future value, total contributions, and interest earned from an initial investment, optional deposits, annual rate, and compounding — all in the browser.
Finance
ROI Calculator
ROI %, net profit, and final value from an initial investment plus ending value or gain — all in the browser.
SEO
UTM Builder
UTM generator, maker, and link builder for campaign URLs — including bulk CSV — all in the browser.
SEO
Robots.txt Builder
Robots.txt builder and robot.txt generator for allow/disallow rules, user-agent groups, sitemap URLs, and AI crawler extras.
SEO
Schema Markup Validator
Schema markup validator and schema checker for JSON-LD — detect @context and @type, flag common errors, and pretty-print in the browser.
SEO
Domain Age Checker
Domain age checker for registration date, age in years/months/days, registrar, and expiration — public RDAP in the browser, or paste WHOIS. Nothing uploaded.
SEO
CPM Calculator
CPM calculator for cost per 1,000 impressions — solve CPM, cost, or impressions, plus CPC and CTR, all in the browser.
Developer
UUID Generator
Generate UUID v4 and UUID v7 (also used as an online GUID generator) with bulk copy.
Developer
JWT Decoder
Decode a JWT header and payload to readable JSON in the browser. No signature check, nothing uploaded.
Developer
Cron Expression Generator
Build a standard 5-field cron expression with presets, a human-readable summary, and upcoming run times — all in the browser.
Developer
JSON Formatter
Validate and pretty-print JSON in the browser with 2 or 4 spaces or tabs, minify, or sort keys. Copy or download — nothing uploaded.
Convert
HEIC to PNG Converter
Convert HEIC and HEIF photos to PNG in the browser. Batch convert, then download — files never leave the device.
Convert
HEIC to PDF Converter
Convert HEIC and HEIF photos to PDF in the browser. Batch convert, then download — files never leave the device.
Convert
Excel to PDF Converter
Convert Excel .xlsx and .xls spreadsheets to PDF in the browser. Batch convert, then download — files never leave the device.
Convert
CSV to Excel Converter
Convert CSV to Excel (.xlsx) in the browser. Paste or open a .csv file, then download a spreadsheet — nothing is uploaded.
Convert
JSON to CSV Converter
Convert JSON arrays and objects to CSV in the browser. Paste or open a .json file, then copy or download — nothing is uploaded.
Convert
PNG to JPG Converter
Convert PNG images to JPG in the browser. Batch convert, then download — files never leave the device.
Convert
Mm to Inches Calculator
Convert millimeters to inches (and inches back to mm) with the exact 1 inch = 25.4 mm formula — decimal and fractional inches, all in the browser.
Convert
Cubic Yard Calculator
Cubic yards and cubic feet from length × width × depth (or a cylinder) in feet or inches — mulch, gravel, concrete, soil, and sand, all in the browser.
Household
Soft Wash Mix Calculator
Educational gallons of mix, bleach, water, and surfactant from surface, square feet, and soil — then request a local quote.
Household
House Sq-Ft Estimator
Educational wall or roof square feet from L×W or footprint, 1–2 stories, and an optional roof pitch bump — then request a local quote.
Household
Vinyl Siding Cleanability Checker
Educational good / caution / skip soft-wash fit from siding type, soil, age, and shade — then request a local quote.
Household
Roof Algae Severity Quiz
Educational 1–4 streak score from coverage, roof age, trees, and north face, plus a typical soft-wash candidate note — not a diagnosis.
Household
Roofing Calculator
Roof surface area, roofing squares, and squares with waste from length × width or plan area, plus an optional pitch factor. Optional price per square stays blank.
Household
Concrete Calculator
Concrete volume in cubic yards and cubic feet for slabs, patios, footings, and round columns, plus waste and 40, 60, and 80 lb bag counts.
Math
Ratio Calculator
Simplify a ratio to lowest terms or solve a missing value in A : B = C : D, with 1 : n, decimal, and percentage forms.
Math
Proportion Calculator
Solve a proportion A / B = C / D for the missing value, or check if two ratios are proportional with cross products and the scale factor.
Math
GCF Calculator
Find the greatest common factor (GCD/HCF) of 2 to 20 whole numbers with prime factorization, Euclidean algorithm steps, common factors, and the LCM.
Math
Factoring Calculator
Find the prime factorization of a whole number, list every positive factor, see the factor count, and tell whether the number is prime or composite.