Base64 Encoder / Decoder – Encode & Decode Base64 Online
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text online.
Select a file to encode its binary data as a Base64 Data URL.
Free Online Base64 Encoder and Decoder
Encode UTF-8 text to Base64 or decode Base64 back to UTF-8 text directly in your browser. You can copy results, swap input and output, download text results, or convert a selected file into a Base64 Data URL.
How to Use the Base64 Encoder / Decoder
- Select Encode to convert text to Base64 or Decode to convert Base64 back to UTF-8 text.
- Enter or paste your content into the input box.
- Click Encode or Decode. You can also press Ctrl/Cmd + Enter to process the current input.
- Copy the result, swap input and output, or download the result as a text file.
- To convert a file to Base64, use Choose File. The tool creates a Base64 Data URL that preserves the file's MIME type.
Base64 Text and File Encoding
The text encoder uses UTF-8, so Unicode text is supported. The decoder accepts standard Base64 characters, handles missing padding when possible, and can read the Base64 portion of a Data URL. Base64 is an encoding format rather than encryption, so encoded content should not be treated as secret or protected data.
Frequently Asked Questions
Can I encode Unicode text to Base64?
Yes. The tool converts text to UTF-8 bytes before creating the Base64 output.
Can I decode a Base64 Data URL?
Yes. In decode mode, the tool can extract and decode the Base64 content after the comma in a Data URL when that content represents valid UTF-8 text.
Can I convert a file to Base64?
Yes. Choose a file and the tool reads it as a Base64 Data URL while preserving its MIME type in the Data URL.
Is Base64 encryption?
No. Base64 is an encoding format, not encryption. Anyone with the encoded value can decode it.
Can I download the result?
Yes. Encoded output can be downloaded as encoded-base64.txt, while decoded UTF-8 text can be downloaded as decoded-text.txt.