Free Online Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 strings instantly.
Tip: Ctrl + Enter to encode · Ctrl + K to clear
How it works
- Paste text to encode, or a Base64 string to decode.
- Click Encode or Decode.
- Copy the output or download it as a text file.
Frequently asked questions
What is Base64 used for?
Base64 represents binary data using 64 safe text characters. It is used for email attachments, data URIs in HTML and CSS, JSON web tokens, and embedding small files in text-based formats.
Is Base64 encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect passwords or sensitive data.
Why is the Base64 output longer than my text?
Base64 turns every 3 bytes into 4 characters, so encoded data is about 33% larger than the original.
Does it support emoji and accented characters?
Yes. Text is converted to UTF-8 before encoding, so characters such as é, ü, 你好 and emoji round-trip correctly.
Base64 Encoder and Decoder
Base64 is an encoding method commonly used to represent binary data as text. This tool lets you encode regular text into Base64 and decode Base64 strings back into readable text.
How to encode Base64
- Enter your text in the input box.
- Click Encode .
- The Base64 representation will appear in the output.
How to decode Base64
- Paste a Base64 string into the input box.
- Click Decode .
- The decoded text will appear in the output.
Is my data uploaded?
No. Encoding and decoding happen directly in your browser. Your input does not need to be sent to a server.