Skip to content
Encoding Runs offline

Base64 Encode / Decode

Convert text and binary data to Base64 and back.

Direction

Uses - and _ instead of + and /

Input

0 chars

Output

0 chars
Ctrl

Questions

Is my data sent to a server?

No. Encoding and decoding run entirely in your browser using JavaScript. Nothing you paste here leaves your device, which is why this tool also works offline once the page has loaded.

What is URL-safe Base64?

Standard Base64 uses + and / , both of which have meaning inside URLs. The URL-safe alphabet (RFC 4648 §5) replaces them with - and _ so the result can be dropped into a query string or path segment unescaped. JWTs use this variant.

Why does decoding fail on some strings?

Base64 input must have a length that is a multiple of four once padding is accounted for, and may only contain characters from the chosen alphabet. Whitespace and line breaks are stripped automatically, but stray characters will report an error rather than return partial output.

Open JWT Decoder

JWT Decoder

Decode a JSON Web Token and inspect its claims.

Developer