Your text
Type or paste something to encode or decode.
How to
Encode or decode in three steps
- Paste your input Type or paste plain text to encode, or a Base64 string to decode.
- Choose encode or decode Encoding reads your text as UTF-8, so accents and emoji survive. Decoding accepts line breaks, missing padding and the URL-safe alphabet.
- Copy the result Use the Copy button. If decoded bytes are not text, for example an image, the tool says so and shows the first bytes.
Base64 in practice
- Base64 is an encoding, not encryption: anyone can decode it. Never use it to hide a password or a key.
- The URL-safe alphabet swaps + and / for – and _ so the value can sit in a URL or a JWT without escaping.
- Base64 output is about a third larger than the input, so it is a poor way to ship big files.
- If decoding fails, look for a stray quote, a space inside the data, or a string cut short.
FAQ
Base64 questions
What is Base64 used for?
It writes binary data using only letters, digits, + and /, so it can travel through systems built for text, such as email, JSON or data URLs.
Is Base64 encryption?
No. It changes the form of the data, not who can read it. Anyone can decode it without a key.
What is URL-safe Base64?
A variant that uses – and _ instead of + and /, and often drops the = padding, so the value is safe in URLs and file names.
Why does decoding say the bytes are not text?
The decoded bytes are not valid UTF-8, which usually means the Base64 holds a file such as an image or a PDF rather than text.
Does it handle emoji and accented letters?
Yes. Text is converted to UTF-8 before encoding and read back as UTF-8 when decoding.
Is my text uploaded?
No. Encoding and decoding run in your browser and nothing is sent anywhere.