Base64 Encoder & Decoder
Convert text to and from standard Base64 and URL-safe Base64 (base64url) directly in your browser.
Encoded Results
Live computation
Base64
Base64Url
Decoded Plaintext
Live computation
Decoded String
Verification
Test Vectors
| Operation | Message | Expected Result |
|---|---|---|
|
Encode |
abc |
(b64)
YWJj (b64url) YWJj |
|
Encode |
This-is-a-secret |
(b64)
VGhpcy1pcy1hLXNlY3JldA== (b64url) VGhpcy1pcy1hLXNlY3JldA |
|
Encode |
{"kid":"cb24a396-4414-4793-b4ce","typ":"JWT","alg":"HS256"} |
(b64)
eyJraWQiOiJjYjI0YTM5Ni00NDE0LTQ3OTMtYjRjZSIsInR5cCI6IkpXVCIsImFsZyI6IkhTMjU2In0= (b64url) eyJraWQiOiJjYjI0YTM5Ni00NDE0LTQ3OTMtYjRjZSIsInR5cCI6IkpXVCIsImFsZyI6IkhTMjU2In0 |
|
Decode |
VGhpcy1pcy1hLXNlY3JldA (b64url) | (plain) This-is-a-secret |
Documentation
Usage & Encoding Notes
- This page decodes and encodes text locally in your browser. Any data you enter stays on your machine and is never sent to any server.
- Base64-encoded values are case sensitive. This is a fundamental characteristic of the encoding.
-
When encoding message content:
- Unicode characters and emojis are fully supported via UTF-8 byte serialization.
- Whitespace in the content is significant. For example, the encoding for
abc\nis different fromabc. - Trailing newlines are preserved.
- Line-breaks are converted to standard newlines (
\n).
- When decoding, not all binary sequences can be decoded into printable UTF-8 strings.
- Written by DinoChiesa. Contact via GitHub or Bluesky.