← All toolsDeveloper

Base64 encoder

How to encode or decode Base64

  1. Paste your text into the box.
  2. Press Encode to turn it into Base64, or Decode to turn Base64 back into readable text.
  3. Copy the result with the Copy button.

What is Base64?

Base64 represents any data using only 64 safe characters: A–Z, a–z, 0–9, + and /, with = as padding at the end. It is used wherever binary data or special characters have to travel through systems that only handle plain text — email attachments, data URLs in HTML and CSS, HTTP Basic authentication headers, JSON Web Tokens and configuration files.

Encoding makes data about one third larger: every 3 bytes become 4 characters.

Base64 is not encryption

Anyone can decode Base64 instantly — it hides nothing. Never use it to “protect” passwords or personal data. If you need to keep text secret, use Text encryption, which protects it with a password and AES-256.

Full Unicode support

The tool encodes text as UTF-8 before converting it, so accented letters, Cyrillic, Chinese characters and emoji work correctly in both directions. When decoding, it checks that the result is valid UTF-8 text and tells you if it is not.

Frequently asked questions

Why does decoding fail?

The input may contain characters that are not part of standard Base64, be cut off, or represent binary data such as an image rather than text. URL-safe Base64, which uses - and _ instead of + and /, needs those two characters replaced first.

Can I encode files?

This tool is designed for text. Binary files such as images are better handled by dedicated developer tools.