Ad
📦
Base64 Encoder
Encode text or any file to a Base64 string instantly. Free, private — nothing is sent to a server.
📂
Drag & drop any file here
or click to browse
📄
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme. It converts binary data (files, images, etc.) into a string of 64 printable ASCII characters. This makes it safe to transmit binary data through text-based protocols like HTTP headers, JSON, XML, or email.
Common uses for Base64 encoding
- Embedding images directly in HTML or CSS as
data:URLs. - Encoding attachments in email messages (MIME).
- Storing binary data in JSON or XML documents.
- Passing binary data in URL query parameters (though URL encoding is often better for that).
Does Base64 change file size?
Yes — Base64 encoding adds approximately 33% to the size of the data. This is a trade-off for the ability to represent binary data as text.
Ad