Base64 Encoder
Convert any text into a Base64 string. Unicode characters such as Arabic or emoji are encoded correctly via UTF-8 before Base64. Useful for embedding data in URLs, emails or configuration files.
What this means
Base64 represents binary data as 64 printable ASCII characters, so it survives text-only channels. Each group of 3 bytes becomes 4 characters.
How we calculate it
Formula
UTF-8 encode the string, then group bytes into 6-bit chunks mapped to A–Z a–z 0–9 + /.Worked example
Encode 'Hello world':
- 1Type or paste your text.
- 2The Base64 output updates live.
- 3Copy the encoded string.
Important assumptions
- Input is encoded as UTF-8, matching how most systems decode Base64.
Frequently asked questions
What is Base64 used for?
Embedding images in HTML or CSS, passing data in URLs, storing binary in JSON, and sending files as text over email.
Does Base64 support Arabic and emoji?
Yes, when the text is UTF-8 encoded first, which this tool does automatically.
Related tools
Base64 Decoder
Decode Base64 strings back to readable text.
URL Encoder
Encode text for safe use inside URLs and query strings.
JSON Formatter
Format, minify and validate JSON with one click.
Hash Generator
Generate MD5, SHA-1 and SHA-256 hashes of any text.
Regex Tester
Test regular expressions against text with live matches.
URL Decoder
Decode percent-encoded URLs back to readable text.