Hand-picked examples covering the variants you’ll see in the wild — plain text, UTF-8 with emoji, JWTs, PEM blocks, data URIs, URL-safe, all padding cases, and hex for comparison. Click any sample to test the decoder.
A library of real-world Base64 examples — useful for testing tools, debugging, or learning what different encoding variants look like. Click Copy to grab a sample, or Open in decoder to load it directly.
"Hello, world!" — the canonical Base64 example. Standard alphabet, two-character padding.
SGVsbG8sIHdvcmxkIQ==
"¡° ‐Σ ★ 🌄 🌐" — non-ASCII multi-byte characters round-trip cleanly when encoded as UTF-8 before Base64.
wqHCsCDigJDOoyDimYUg8J+MhCDwn4yQ
A standard JWT with header, payload, and signature. Open in the JWT decoder for a structured view.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ikphb…
A tiny 5×5 red PNG embedded as a data URI. Decodes to 85 bytes of binary PNG data.
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI…
No padding, hyphen and underscore instead of + and /. This is a JWT payload.
eyJzdWIiOiJhbGljZSIsImlhdCI6MTcxNTAwMDAwMH0
A truncated PEM certificate block. The PEM parser extracts every BEGIN/END block separately.
-----BEGIN CERTIFICATE----- ⏎ MIIDazCCAlOgAwIBAgIUE7wScF6mNhU4HRRSULRpO0KqZv0w…
HTTP Basic Authentication. Decodes to "alice:secret123" — note that Basic Auth is plaintext over the wire (always pair with HTTPS).
Basic YWxpY2U6c2VjcmV0MTIz
"Man is distinguished" — input length forces one byte of padding.
TWFuIGlzIGRpc3Rpbmd1aXNoZWQ=
Same "Hello, world!" content but in hex (radix-16) instead of Base64 (radix-64). Hex is 2× longer than raw; Base64 is 1.33×.
48656c6c6f2c20776f726c6421
A 48×48 blue circle in SVG, embedded as a data URI. SVG works well in data URIs even at larger sizes.
data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmci…