Text to Base64 converter
Type or paste text and this tool shows its Base64 form.
Results
Enter your values to see the result.
About this tool
Base64 is used to carry data safely through systems that handle only plain text, such as email, web addresses and data URLs. It also shows the size of the text in bytes.
- How it is calculated
- the text is turned into bytes with UTF-8, and every 3 bytes become 4 characters from A-Z a-z 0-9 + / (padded with =).
- Worked example
- With Text: Hello, world!, the result is: Base64: SGVsbG8sIHdvcmxkIQ==; Size in bytes: 13.
- Good to know
- The text is turned into bytes with UTF-8, and every three bytes become four characters from the Base64 alphabet, with equals signs added as padding. Base64 is an encoding and not encryption, so anyone can decode it.
Frequently asked questions
Is Base64 a form of encryption?
No. It only changes how the data is written, and anyone can turn it back. Do not use it to protect secrets.
Why is the Base64 text longer than the original?
Three bytes become four characters, so the encoded text is about a third longer than the original data.