Base64 Encoder & Decoder
Encode UTF-8 text as Base64, or decode Base64 strings back to readable text.
What is Base64 encoding?
Base64 converts bytes into ASCII characters that are safe to move through text-oriented systems. It is common in email, data URLs, API examples, HTTP Basic Auth snippets, JSON fixtures, and copied tokens.
Paste plain text on the left to encode it, or paste Base64 on the right to decode it. The tool handles UTF-8 text, so normal symbols and international text round-trip as expected.
Practical Base64 examples
Plain text: Hello, DevTools Box! becomes SGVsbG8sIERldlRvb2xzIEJveCE=.
Basic Auth format: credentials are usually encoded as username:password before being placed after the Basic prefix in examples.
Data URLs: image and font snippets can include Base64 after a prefix such as data:image/png;base64,. Decode only the part after the comma.
FAQ
Does Base64 encrypt my data?
No. Base64 is encoding, not encryption. Anyone with the string can decode it back to the original bytes or text.
Why does Base64 output look longer?
Base64 represents every 3 bytes as 4 characters, so encoded output is usually about 33% larger than the original data.
Can I decode Base64 with line breaks?
Most Base64 decoders tolerate normal whitespace. If a source includes labels or unrelated characters, remove them first.
What does Base64 padding mean?
Padding characters such as equals signs are used when the original data length does not divide evenly into 3-byte groups.