Convert raw text and binary strings into Base64 or decode Base64 back into plain text. Features URL-safe mode, UTF-8 multi-byte character support, and quick input/output swap controls.
Choose Encode or Decode tab options depending on your target transformation.
Paste raw text strings, authentication credentials, or Base64 encoded strings.
Enable URL-safe mode to replace `+` with `-` and `/` with `_`, stripping trailing `=` padding.
Click the Swap button (`<ArrowLeftRight />`) to instantly invert input and output text.
Inspect clean Base64 encoded strings or decoded UTF-8 plain text outputs.
Click the Copy icon to copy transformed output data instantly.
Encode `username:password` credentials for HTTP `Authorization: Basic ...` headers.
Embed small images, SVGs, or fonts directly into CSS using `data:image/svg+xml;base64,...`.
Transmit binary data safely across text-based protocols like JSON, XML, and Email MIME.
Use URL-safe Base64 encoding to pass complex state strings inside web browser URLs.
Base64 is a binary-to-text encoding scheme defined in RFC 4648. It converts binary data into an index of 64 printable ASCII characters (A-Z, a-z, 0-9, +, /).
Standard Base64 contains + and / characters, which have special meanings inside web URLs and query parameters. URL-Safe Base64 replaces:
+ ➔ - (hyphen)/ ➔ _ (underscore)= padding characters are omitted.