JSON Formatter
Paste JSON to validate and pretty-print it in your browser. Pick your indent, minify, or sort keys, then copy or download. Nothing is uploaded.
- Validate
- Pretty-print
- Minify
Strict JSON validation and pretty-print in this tab. Choose 2 spaces, 4 spaces, or tabs, or minify to one line. Nothing is uploaded.
Paste JSON to validate it, pretty-print it with indentation, then copy or download the result.
A JSON formatter turns a one-line API response or a hand-edited config into readable, indented JSON. Paste it here and every object and array gets its own level of indentation, so you can scan keys, spot missing values, and copy a clean version back into your editor.
The formatter is also a JSON validator. Input is parsed as strict JSON, so trailing commas, single quotes, comments, and unquoted keys are flagged with the parser error and the line and column when your browser provides them. Valid input shows its top-level type, key count, nesting depth, and size in bytes.
Everything stays in this tab, with no upload and no account. Need the data as a spreadsheet? Use the JSON to CSV converter. To read a token payload, open the JWT decoder. Tidy a query with the SQL formatter, make test IDs with the UUID generator, or check JSON-LD with the schema markup validator. More utilities live on the Developer hub.
How to use the JSON formatter
- Paste JSON into the box, or load the sample.
- Fix anything flagged as Invalid JSON at the reported line and column.
- Choose Pretty-print or Minify, your indent, and whether to sort keys.
- Copy the result or download it as a .json file.
- Clear the box when you are done. Nothing is stored.
Frequently asked questions
What is a JSON formatter?
A JSON formatter takes minified or messy JSON and pretty-prints it with line breaks and indentation so objects, arrays, and nested values are easy to read. This one also validates the JSON and runs entirely in your browser.
Does this JSON formatter validate my JSON?
Yes. The input is parsed as strict JSON before it is formatted. If parsing fails, you see an Invalid JSON message with the parser error and, when the browser reports it, the line and column of the problem.
Is my JSON uploaded to a server?
No. Parsing, formatting, copying, and downloading all happen in this tab. We do not log, store, or send what you paste, so it is safe for API responses and config files you would not post publicly.
Can I choose 2 spaces, 4 spaces, or tabs?
Yes. Pick 2 spaces, 4 spaces, or Tab under Indent. Switch Output to Minify to collapse the JSON onto a single line with no extra whitespace.
Can I sort JSON keys alphabetically?
Yes. Tick Sort keys A–Z to reorder object keys at every level. Array order is never changed, because array order is meaningful in JSON.
Why does my JSON show as invalid?
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, comments, and values like undefined or NaN. Those are allowed in JavaScript but not in strict JSON. Fix the spot the error points to and the output updates as you type.
Does formatting change my data?
No. Only whitespace changes, plus key order if you turn on sorting. Strings, numbers, booleans, and null keep the same values. Very large integers beyond about 9 quadrillion may lose precision, the same as in any JavaScript JSON parser.
Can I copy or download the formatted JSON?
Yes. Use Copy to put the result on your clipboard, or Download .json to save it as formatted.json. Format replaces the input box with the formatted output, and Clear empties it.
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
SQL Formatter
Pretty-print SQL with indentation and uppercase keywords in the browser. Copy the formatted query — 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.