Skip to content
Sumly

Base64 Encoder & Decoder

Encode and decode Base64 safely — UTF-8 correct, URL-safe optional.

In

Out

SGVsbG8sIFN1bWx5IOKAlCBjYWbDqSBlZGl0aW9uIQ==
Input length28 chars
Output length44 chars
Size growth57%
Base64 is encoding, not encryption — anyone can reverse it. Use URL-safe output in tokens and path segments where + and / break routing.

How Base64 Encoder & Decoder works

Encoding converts your text to UTF-8 bytes, then re-expresses every 3 bytes as 4 Base64 characters — the ~33% size growth shown in the stats is that fixed ratio, not removable overhead.

The URL-safe alphabet swaps + and / for - and _ and drops the padding, which is what tokens and path segments need to survive routing, cookies and query strings.

Decoding reverses the process after repairing common quirks first: whitespace stripped, URL-safe characters mapped back, missing padding rebuilt — then the bytes decode as UTF-8 text.

Worked example

The preloaded 31-character greeting encodes to 48 Base64 characters (SGVsbG8sIFRvb2xEZWNr…) — about 55% growth because of the accents. Switch the mode to Decode and the same string round-trips back to the original text, accents intact.

The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.

Frequently asked questions

Percent-encode parameters or whole URLs — and decode them back.

Decode, inspect claims, and check expiration on JSON Web Tokens locally.

Generate RFC 4122 v4 UUIDs in bulk, with formatting options.

SHA-256, SHA-384, SHA-512 and SHA-1 digests, computed locally.

Generate cryptographically secure passwords and secrets with real-time Shannon entropy metrics.

Validate, beautify and minify JSON with precise error messages.

  • base64
  • encoding
  • developer
  • converter
  • token