Skip to content
nestoo
  • What is my IPYour public IPv4 and IPv6 address, location and provider.Network & IP
  • Speed testMeasure your download and upload speed, latency and jitter.Network & IP
  • IP lookupLocation, provider and network of any IP address.Network & IP
  • DNS lookupA, AAAA, MX, TXT, NS and other DNS records for any domain.Network & IP
  • WHOIS lookupOwner, registrar and expiry date of any domain or IP.Network & IP
  • Prefix lookupCheck a prefix in BGP, RPKI and the IRRs before you announce it.Network & IP
  • ASN lookupOwner, announced prefixes and neighbours of any AS number.Network & IP
  • Subnet calculatorNetwork, broadcast, host range and mask of any IPv4 or IPv6 subnet.Network & IP
  • Port checkerCheck whether a port is open on your IP or a server.Network & IP
  • HTTP headers checkerResponse headers, status codes and redirect chain of a URL.Network & IP
  • SSL checkerCertificate validity, expiry and chain of any website.Network & IP
  • SPF, DKIM and DMARC checkerCheck a domain’s SPF, DKIM and DMARC records for mistakes.Network & IP
  • Password generatorStrong, random passwords generated right in your browser.Passwords & security
  • Password strength checkerHow long a password would take to crack, and if it leaked.Passwords & security
  • Hash generatorMD5, SHA-1, SHA-256, SHA-512 and CRC32 hashes of text or files.Passwords & security
  • JSON formatterFormat, validate and minify JSON, with exact error locations.Developer tools
  • Base64 encoder/decoderEncode text or files to Base64 and decode it back.Developer tools
  • URL encoder/decoderEncode and decode URLs and query strings, and parse any URL.Developer tools
  • JWT decoderRead the header and claims of a JSON Web Token.Developer tools
  • UUID generatorRandom UUID v4 and time-ordered v7 identifiers.Developer tools
  • Unix timestamp converterConvert Unix timestamps to dates and dates to epoch time.Developer tools
  • Binary converterTranslate text to binary and convert between number bases.Developer tools
  • Image compressorMake JPG, PNG, WebP and AVIF files smaller, many at once.Image tools
  • Image resizerResize images to exact pixels or by percentage, many at once.Image tools
  • Image converterConvert HEIC, PNG, WebP, AVIF and more to JPG, PNG, WebP or AVIF.Image tools
  • Crop imageCrop, rotate and flip images to any size or aspect ratio.Image tools
  • EXIF viewer and removerSee the hidden data in photos, including location, and remove it.Image tools
  • Favicon generatorTurn a logo into favicon.ico, Apple touch icon and app icons.Image tools
  • Image to Base64Turn images into Base64 data URIs, and data URIs back into images.Image tools
  • Word counterCount words, characters, sentences and reading time.Text tools
  • Case converterUPPERCASE, lowercase, Title Case, camelCase, snake_case and more.Text tools
  • Diff checkerCompare two texts and highlight the differences.Text tools
  • QR code generatorFree QR codes for links, text, Wi-Fi and contacts, as PNG or SVG.Everyday tools
  • Percentage calculatorPercent of a number, percentage change, increase and decrease.Everyday tools
  • Unit converterConvert length, weight, temperature, volume, data and more.Everyday tools

JSON formatter and validator

Paste JSON to format it, check that it’s valid and see exactly where it breaks. Everything runs in your browser, so your data stays on your device.

Runs in your browser. What you enter never leaves your device.

How to use it

  1. 1.Paste JSON into the box, drop a .json file onto it, or click “Choose a file”.
  2. 2.The formatted result appears as you type. Choose 2 spaces, 4 spaces or tabs for indentation, or Minify to remove all whitespace.
  3. 3.If the JSON is invalid, you’ll see what’s wrong and the exact line and column. Click “Show in the input” to jump straight to the problem.
  4. 4.Turn on “Sort keys A–Z” to order the properties of every object alphabetically (handy before comparing two files).
  5. 5.Copy the result or download it as a .json file.

What is JSON?

JSON (JavaScript Object Notation) is a plain-text format for structured data. It’s the standard for web APIs and configuration files, and almost every programming language can read and write it.

A JSON document holds one value: an object with name–value pairs in curly braces, an array in square brackets, a string in double quotes, a number, true, false or null. Objects and arrays can be nested as deeply as you need.

Common JSON errors and how to fix them

Most invalid JSON comes from habits that JavaScript, Python or YAML allow but JSON doesn’t: a trailing comma after the last item, single quotes instead of double quotes, property names without quotes, comments, and values such as undefined, NaN or Python’s True and None.

Other frequent culprits are a missing comma between two items, an unescaped double quote or backslash inside a string, and curly quotes pasted from a word processor. The validator names the exact problem and marks where it is, consistently in every browser, even where the browser’s own error message is vague.

Invalid JSON
{
  "name": "nestoo",
}
Valid JSON
{
  "name": "nestoo"
}

Formatting without changing your data

Many formatters read the JSON into JavaScript and print it out again, which quietly changes it: whole numbers above 9,007,199,254,740,991, such as 64-bit IDs, lose their last digits, 1.0 becomes 1, and escape sequences are replaced by the characters they stand for.

This formatter re-indents the text itself, so every number and string stays exactly as you wrote it, and sorting keeps duplicate keys that JavaScript would silently drop. Files of several megabytes format in a fraction of a second; for very large output, syntax colours switch off to keep the page responsive.

Questions and answers

How do I check if my JSON is valid?

Paste it into the box above. Valid JSON shows “Valid JSON” with its line count and size; invalid JSON shows what’s wrong and the exact line and column. The check follows the JSON standard (RFC 8259), the same rules as JSON.parse in your browser.

Why is a trailing comma an error in JSON?

The JSON standard doesn’t allow a comma after the last item of an object or array, even though JavaScript and many other languages do. Remove the comma before the closing bracket and the JSON becomes valid.

Can JSON contain comments?

No. Standard JSON has no comments, so // and /* */ make it invalid. Formats such as JSONC and JSON5 allow them, but most parsers don’t. To keep a note in plain JSON, put it in an ordinary property such as "_comment".

What does minifying JSON do?

It removes every space, tab and line break outside strings. The data stays identical but the file gets smaller (often by a third or more for indented JSON), which makes API responses faster and saves storage.

Is my JSON sent to a server?

No. Formatting and validation run entirely in your browser, and nothing you paste is uploaded or stored. Once the page has loaded, the tool even works offline.