Reference · Test data

Base64 sample library.

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.

Sample library

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.

Simple text

"Hello, world!" — the canonical Base64 example. Standard alphabet, two-character padding.

SGVsbG8sIHdvcmxkIQ==
UTF-8 with emoji

"¡° ‐Σ ★ 🌄 🌐" — non-ASCII multi-byte characters round-trip cleanly when encoded as UTF-8 before Base64.

wqHCsCDigJDOoyDimYUg8J+MhCDwn4yQ
JWT — HS256 sample

A standard JWT with header, payload, and signature. Open in the JWT decoder for a structured view.

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ikphb…
Data URI (5×5 red PNG)

A tiny 5×5 red PNG embedded as a data URI. Decodes to 85 bytes of binary PNG data.

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI…
URL-safe Base64

No padding, hyphen and underscore instead of + and /. This is a JWT payload.

eyJzdWIiOiJhbGljZSIsImlhdCI6MTcxNTAwMDAwMH0
PEM certificate (truncated)

A truncated PEM certificate block. The PEM parser extracts every BEGIN/END block separately.

-----BEGIN CERTIFICATE----- ⏎ MIIDazCCAlOgAwIBAgIUE7wScF6mNhU4HRRSULRpO0KqZv0w…
Basic Auth header

HTTP Basic Authentication. Decodes to "alice:secret123" — note that Basic Auth is plaintext over the wire (always pair with HTTPS).

Basic YWxpY2U6c2VjcmV0MTIz
Long-padded (single =)

"Man is distinguished" — input length forces one byte of padding.

TWFuIGlzIGRpc3Rpbmd1aXNoZWQ=
Double-padded (==)

"Ma" — two padding characters because only one byte of leftover input.

TWE=
No padding

"Man" — three input bytes fit exactly in 4 Base64 chars, no padding needed.

TWFu
Hex (for comparison)

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
SVG data URI

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…
Related tools

More from the toolkit.