How is text converted to Base64?
The encoder first turns text into UTF-8 bytes, then maps each group of three bytes to four printable Base64 characters. ASCII text usually changes only in representation. Chinese characters and emoji use multiple UTF-8 bytes, so their encoded strings are longer. Standard output uses plus, slash, and any required equals-sign padding. Base64 does not compress, encrypt, or hide text; anyone can decode the result.
Common uses
- Create Base64 text values for APIs, fixtures, or documentation.
- Inspect how multilingual text is represented as UTF-8 bytes.
- Prepare text snippets for MIME, data URLs, or app configuration.
How to encode text
- 1
Enter your text
Type or paste content. Unicode, line breaks, and emoji are supported.
- 2
Copy the encoded value
The Base64 output updates as you type; copy it when ready.
- 3
Download the result
Save the encoded string as a text file when needed.
Encoding example
Input
Hello, 世界!Result
SGVsbG8sIOS4lueVjCE=The output is standard Base64 and decodes to exactly the same UTF-8 text.
Frequently asked questions
Is encoded text secure?
Base64 is not encryption. It changes the representation only and should not protect passwords, keys, or personal data.
Why is the encoded Chinese text longer?
Base64 encodes UTF-8 bytes. A Chinese character usually takes several bytes, and Base64 adds roughly one third to the size.
Can I put the output directly in a URL?
Standard Base64 uses plus and slash, which may need escaping in URLs. This tool outputs standard Base64. For a URL-safe value, replace plus with hyphen and slash with underscore, then handle padding as required by your format.