Multiple utilities
JSON formatting, Base64, URL encoding/decoding, and JWT decoding in one place.
Developer tools
Dev Formatter is a set of small developer utilities for formatting JSON, encoding and decoding Base64, encoding URLs, and decoding JWTs. It's handy for quick debugging and data checks in the browser.
01 / How it works
Choose the tool you need: JSON, Base64, URL, or JWT.
Paste your input or drop a file where supported.
Get the formatted or decoded result instantly and copy it.
02 / Features
JSON formatting, Base64, URL encoding/decoding, and JWT decoding in one place.
See results immediately, which is useful while debugging APIs or payloads.
Formatted results are easy to copy back into code, docs, or tickets.
Your data is processed in the browser, not sent to a server.
03 / Guide
Dev Formatter puts four everyday developer utilities in one place: a JSON formatter and validator, a Base64 encoder and decoder, a URL encoder and decoder, and a JWT decoder. This guide explains what each mode does, how to read JSON error messages, and what JWT decoding can and can't tell you.
Paste JSON and the formatted version appears straight away. Choose 2 spaces, 4 spaces or tabs for indentation, or Minify to remove all the whitespace for the smallest possible output. Tick Sort keys to put object keys in alphabetical order at every level. That's handy when you're comparing two API responses whose keys came back in a different order.
When the JSON is valid, a summary line shows the number of keys, how deeply it's nested, and the output size. When it isn't, you get a plain-English error with the line and column where the problem was found.
JSON is stricter than the JavaScript it came from. Most errors are one of a handful of mistakes, and the formatter names each one:
[1, 2, 3,] or {"a": 1,}, is allowed in JavaScript but not in JSON. Remove it.{"name": "Ada"}, not {'name': 'Ada'}.{name: "Ada"}, copied from JavaScript code.{, [ or " was opened and the text ended before it was closed. The real mistake is often much earlier than the line reported, so look for the bracket that doesn't have a partner.\n where you want a new line.C:\Users has to be written as C:\\Users.Comments aren't allowed in JSON either. If you're pasting from a config file that has // comments, remove them first.
Base64 turns any data into plain letters, numbers and a few symbols, so it can travel through systems that only handle text: email attachments, JSON fields, data URLs in CSS, and HTTP Basic authentication headers. It is not encryption. Anyone can decode it, so never treat a Base64 string as hidden.
In Encode mode, type text to convert it, using UTF-8 so accents and emoji survive. Turn on the URL-safe option to get the variant that uses - and _ instead of + and /, which is what JWTs and many web APIs expect. You can also encode a file: the result is offered both as a data URL (ready for an <img src> or a CSS background) and as raw Base64.
In Decode mode, paste Base64 or a full data: URL. Both standard and URL-safe alphabets are accepted, and missing = padding is added for you. If the result is readable text, it's shown. If it's binary, the tool recognises common types such as PNG, JPG, GIF, PDF and ZIP and offers a download.
URLs can only contain a limited set of characters, so spaces, accents and symbols are written as % followed by two hex digits. A space becomes %20, and é becomes %C3%A9. The encoder has two scopes, and picking the right one matters:
&, =, ? and /. Use it for a single value you're putting into a link, such as a search term or a redirect address. Otherwise an & in the value would split it into two parameters.Decoding reverses either one. If the text contains a % that isn't followed by two hex digits, you'll be told the encoding is broken. When the input or output is a full URL, the tool also breaks it into protocol, host, port, path, fragment and a table of query parameters, which is the quickest way to read a long tracking link.
A JSON Web Token has three parts separated by dots: a header, a payload and a signature. The first two are just Base64URL-encoded JSON, so anyone holding the token can read them. Paste a token and the decoder shows the header (including the signing algorithm, alg), the payload claims, and the issued, not-before and expiry times as readable dates. It also tells you whether the token has expired, compared with your device's clock.
What it does not do is verify the signature. Verifying needs the secret key or the issuer's public key, and a secret key should never be pasted into any website. So a decoded token proves nothing about who created it: a forged token decodes just as neatly as a real one. Use the decoder to debug what's inside a token, and leave trust decisions to your server, which verifies the signature on every request.
Also remember that JWT payloads are readable by anyone. Don't put passwords or personal data in them, and be careful about pasting production tokens into chats and tickets, where they could be reused until they expire.
All four modes run in your browser. JSON, tokens and files are processed on your device and never sent to a server, so it's safe to use with real API responses. When the JSON is ready for production, the Code Minifier can shrink JavaScript, CSS and HTML too, and the Markdown Reader is useful for previewing the docs that go with your API.
04 / FAQ
Yes. It decodes the JWT header and payload so you can inspect them.
It decodes and shows the token contents. Signature verification depends on having the right secret or key, so treat decoded content as inspection, not trust.
No. Formatting and decoding happen locally in your browser.
05 / Related tools