Base64 Encoder and Decoder
Encode or decode a text or small file as Base64, with UTF-8 and input validation.
Text is read as UTF-8, so Arabic and emoji round-trip. Decoding also accepts the URL-safe form, missing padding, and a data:…;base64, prefix.
Your result
Type text to encode, or paste Base64 to decode.
How to use it
- Choose Text → Base64 or Base64 → Text.
- Type or paste, or press Try a sample.
- Copy the result; the character and byte counts show under it.
Examples
- An English wordHi SGk=
- Arabic textمرحبا 2YXYsdit2KjYpw==
- URL-safe?> Pz4 (instead of Pz4=)
Tool details and privacy
Type text to get Base64, or paste Base64 to read the text. Swap puts the result back in the box.
Base64 appears in JWTs, data: links, and Authorization headers; reading it helps when you are tracking a problem.
Options
- URL-safe uses - and _ instead of + and / and drops the = padding.
- Decoding accepts both forms, missing padding, spaces and line breaks, and a data:…;base64, prefix.
Limits
- If the data is an image or a file rather than text, the page tells you its size in bytes instead of showing garbled characters.
- This page is for text; it does not read files.
Privacy
What you type stays in your browser. Nothing is uploaded or saved on the server.
Questions
Is Base64 encryption?
No. Anyone can decode it, so do not put secrets in it.
Why does Arabic differ from other sites?
Text is encoded as UTF-8 here, the web standard.
What does the binary-data message mean?
What you decoded is not text, for example an image or a zip file.
Is the text uploaded?
No.