Base64 Encoder / Decoder – Encode & Decode Base64 Online

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text online.

Input Text 0 characters
File to Base64

Select a file to encode its binary data as a Base64 Data URL.

Base64 Output 0 characters
Ready. Enter text and click Encode.
0 Input Characters
0 Input Bytes
0 Output Characters
0 Output Bytes
Encode Mode
Base64 note: Base64 is an encoding format, not encryption. Encoded content can be decoded by anyone who has it. This tool supports UTF-8 text including Unicode characters and performs processing locally in your browser.

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

  1. Select Encode to convert text to Base64 or Decode to convert Base64 back to UTF-8 text.
  2. Enter or paste your content into the input box.
  3. Click Encode or Decode. You can also press Ctrl/Cmd + Enter to process the current input.
  4. Copy the result, swap input and output, or download the result as a text file.
  5. 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.

Related Developer Tools