Skip to content

Developer tools

Dev Formatter

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

Simple steps, fast result.

  1. 01

    Choose the tool you need: JSON, Base64, URL, or JWT.

  2. 02

    Paste your input or drop a file where supported.

  3. 03

    Get the formatted or decoded result instantly and copy it.

02 / Features

What you get.

Multiple utilities

JSON formatting, Base64, URL encoding/decoding, and JWT decoding in one place.

Fast feedback

See results immediately, which is useful while debugging APIs or payloads.

Copy-ready output

Formatted results are easy to copy back into code, docs, or tickets.

Local handling

Your data is processed in the browser, not sent to a server.

03 / Guide

Using Dev Formatter, in depth.

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.

JSON: format, validate, minify

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.

Reading JSON error messages

JSON is stricter than the JavaScript it came from. Most errors are one of a handful of mistakes, and the formatter names each one:

  • Trailing comma. A comma after the last item, as in [1, 2, 3,] or {"a": 1,}, is allowed in JavaScript but not in JSON. Remove it.
  • Single quotes. Strings and keys must use double quotes: {"name": "Ada"}, not {'name': 'Ada'}.
  • Expected a key in double quotes. Usually an unquoted key, such as {name: "Ada"}, copied from JavaScript code.
  • Is a comma missing? Two values sit next to each other with nothing between them, often at the end of a line you just added.
  • Never closed. A {, [ 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.
  • Line break inside a string. JSON strings can't span lines. Write \n where you want a new line.
  • Invalid escape. Backslashes must be doubled in JSON. A Windows path like 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: text, files and data URLs

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.

URL encoding: query value or whole URL?

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:

  • Query value encodes everything that has a special meaning in a URL, including &, =, ? 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.
  • Whole URL leaves the structure characters alone and only encodes what's unsafe, such as spaces. Use it to tidy a complete link.

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.

JWT: what decoding shows, and what it doesn't

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.

Where your data goes

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

Common questions.

Can it decode JWTs?

Yes. It decodes the JWT header and payload so you can inspect them.

Does it validate JWT signatures?

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.

Is pasted data uploaded?

No. Formatting and decoding happen locally in your browser.