Free Base64 Encoder/Decoder

Convert text to Base64 or decode Base64 back to plain text.

Base64 encodes binary or text data using only 64 printable ASCII characters, which is why it's used to safely embed data in places that expect plain text — email attachments, data URIs for inline images, or API payloads. It's an encoding, not encryption — anyone can decode it, so never use Base64 alone to protect sensitive data.

Worked Example

Example: The text Hello, World! encodes to SGVsbG8sIFdvcmxkIQ==. Decoding that string returns the original text exactly.

Formula / Method

Uses the browser's native btoa() for encoding and atob() for decoding, with UTF-8 handling via encodeURIComponent/decodeURIComponent for non-ASCII characters.

Worked Example

Example: The text Hello, World! encodes to SGVsbG8sIFdvcmxkIQ==. Decoding that string returns the original text exactly.

Formula / Method

Uses the browser's native btoa() for encoding and atob() for decoding, with UTF-8 handling via encodeURIComponent/decodeURIComponent for non-ASCII characters.