All developer tools

Encoding

Encode and decode Base64 and URLs, or inspect the headers and payload of a JSON Web Token.

Encoding changes how bytes are represented, not who can read them. Base64 is useful for carrying binary bytes in text-only fields, while URL encoding protects characters that have structural meaning inside a URL component. A JWT decoder exposes token headers and claims so you can inspect them, but reading a token does not establish that its signature is valid. Choose the tool by the transport boundary you are working with rather than by the appearance of the string.

When debugging an HTTP request, look at the exact layer that failed. A query parameter containing an ampersand needs component encoding; a Base64 payload needs the correct alphabet and padding; a JWT claim with an expiration timestamp needs time interpretation. These operations are easy to confuse because all three can produce long strings of punctuation. Keep a copy of the original value and test one transformation at a time.

Choose the right tool

  • URL Encode/Decode: Encode a query value without turning its separators into extra parameters.
  • Base64: Represent or inspect bytes in a text field; do not treat the output as secret.
  • JWT Decoder: Read claims during debugging while leaving signature verification to the receiving application.

A practical workflow

Imagine a callback URL carrying an opaque token in one query parameter. Encode that parameter with URL Encode/Decode and inspect the completed URL with URL Parser in the Web category. If the value is a JWT, decode a copy to inspect its expiration and audience claims. Do not use the decoded display as proof that the sender was trusted; the server must verify the signature and the expected claims. This workflow separates transport escaping from token validation.

Things to check

  • Unicode text must become bytes before Base64 encoding. Browser btoa expects a Latin-1-like input and can reject ordinary characters such as é. See Base64.
  • A plus sign represents a space in form encoding, not in every URL context. Decoding a value twice can also change a literal percent sequence. See URL Encode/Decode.
  • JWT exp and iat values use seconds. Treating them as milliseconds produces dates that are nowhere near the intended time. See JWT Decoder.

Related guides