Base64 Encoder & Decoder

Convert text to Base64 or decode a Base64 string back to text. Runs entirely in your browser — nothing you type is sent anywhere.

How it works

Base64 encodes arbitrary binary/text data into an ASCII string using 64 characters (A–Z, a–z, 0–9, +, /), padded with = so the output length is a multiple of 4. It is not encryption — anyone can decode it back to the original data.

Examples

InputBase64
helloaGVsbG8=
Hello, World!SGVsbG8sIFdvcmxkIQ==
{"id":1}eyJpZCI6MX0=
(empty string)

FAQ

Is Base64 encryption? No. It is a reversible encoding, not a security mechanism — never use it to protect sensitive data.

Why does the output end with =? Base64 groups input into 3-byte chunks encoded as 4 characters; = pads the last chunk when the input length isn't a multiple of 3.

Does this work with Unicode/emoji? Yes — input is UTF-8 encoded before Base64 conversion, so non-ASCII text round-trips correctly.