Base64 Encoder
Turn any text into a Base64 string. Base64 is used in data URIs, HTTP Basic auth headers and JSON payloads that must carry binary-safe text. This encoder converts text as UTF-8, so accents and emoji encode correctly.
Also known as: base64 encode, encode to base64, text to base64, base64 encode online.
Your data is processed locally in your browser and is not uploaded to our servers.
Features
- Correct UTF-8 handling
- Copy the result in one click
- Runs locally in your browser
How to use the Base64 Encoder
- Type or paste text into the input box.
- Click Encode to Base64.
- Copy the result.
Examples
Text to Base64
Hello, NinjaTools -> SGVsbG8sIE5pbmphVG9vbHM=
Frequently asked questions
Is Base64 encryption?
No. Base64 is a reversible encoding, not encryption. Anyone can decode it, so never use it to hide secrets.
Why is the output longer than the input?
Base64 represents every 3 bytes as 4 characters, so the result is about one third larger.