Encoding Utility

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

  1. 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.
  2. Base64-encoded values are case sensitive. This is a fundamental characteristic of the encoding.
  3. When encoding message content:
    1. Unicode characters and emojis are fully supported via UTF-8 byte serialization.
    2. Whitespace in the content is significant. For example, the encoding for abc\n is different from abc.
    3. Trailing newlines are preserved.
    4. Line-breaks are converted to standard newlines (\n).
  4. When decoding, not all binary sequences can be decoded into printable UTF-8 strings.
  5. Written by DinoChiesa. Contact via GitHub or Bluesky.