Base64 Encode and Decode
Encode text to Base64, or decode Base64 back to text.
How to use the Base64 Encoder and Decoder
- Choose Encode or Decode. Encode turns text into Base64. Decode turns Base64 back into text.
- Paste your text. Paste into the box on the left.
- Copy the result. The answer appears on the right.
- Copy or download. Use the Copy button, or Download to save the result as a file.
About this tool
Base64 is a way to write any data using only letters, digits and a few symbols. It is used in emails, data URLs, tokens and APIs.
This tool handles Hindi, emoji and other non-English text correctly by converting it to UTF-8 first. Base64 is not encryption, so it does not keep anything secret.
When to use the Base64 Encoder and Decoder
- Encode text for use in a data field.
- Decode a Base64 string to read it.
- Test an API value.
Tips for the best result
- Base64 is not encryption. Do not use it to hide secrets.
- Choose Decode and paste the whole string.
- Padding with = at the end is normal.
Frequently asked questions
Is Base64 encryption?
No. Anyone can decode it. Do not use it to hide passwords.
What is URL-safe Base64?
It swaps + and / for - and _ and drops the = padding, so the result can be used inside a web address.
What is Base64?
A way to write data using only letters, digits, + and /, so it can travel safely through text systems.
Is Base64 secure?
No. Anyone can decode it, so it is not a way to protect data.
Is there a limit on how much text I can paste?
There is no fixed limit. Very large texts depend on your device’s memory and can be slower on older phones.
Is my text sent anywhere?
No. Everything runs in your browser. What you type or paste never leaves your device.