Base64 Encode
Encode text to Base64
— Encode text to Base64
Input
Output
Output will appear here
0 words·0 chars·0 lines
⌘K
About Base64 Encode
Encodes any text or binary data as a Base64 string. Handles Unicode characters correctly, unlike a naive btoa() call.
Use cases
- →Encode credentials for HTTP Basic Auth headers
- →Embed binary data in JSON or HTML
- →Encode email attachments
- →Store binary data in text-only formats
FAQ
- Does it handle Unicode?
- Yes — Unicode characters are encoded correctly via UTF-8 before Base64 encoding.
- What is Base64 used for?
- Encoding binary data as ASCII text so it can be safely transmitted over text-based protocols.