The Base64 Encoder/Decoder converts text and binary data to and from Base64 format entirely in your browser. Base64 is widely used in email attachments, data URIs, HTTP Basic Authentication headers, and embedding binary data in JSON or XML payloads. Supports both standard and URL-safe variants, optional 76-character line wrap (MIME / PEM format), and a copy raw payload without data: prefix button for file uploads.
Frequently Asked Questions
What is Base64 encoding?
Base64 is an encoding scheme that converts binary data into a string of 64 printable ASCII characters. It is used to safely transmit binary data over text-based protocols like HTTP or email.
Is Base64 the same as encryption?
No. Base64 is an encoding, not encryption. Anyone can decode a Base64 string instantly — it provides no security by itself.
What is the difference between standard and URL-safe Base64?
Standard Base64 uses + and / characters that are reserved in URLs. URL-safe Base64 replaces them with - and _ for safe use in query strings and filenames.
Why does Base64 output end with == ?
Base64 pads output to a multiple of 4 characters using = signs when the input byte count is not divisible by 3.
When should I enable the 76-character line wrap?
Turn on "Wrap at 76 chars (MIME/PEM)" when the output needs to live inside an email body, a MIME attachment, or a PEM-encoded key/certificate. RFC 2045 (MIME) and PEM both require a newline every 76 characters. The decoder automatically strips whitespace, so wrapped input still decodes correctly.