DN

Base64 Encoder & Decoder

Convert text to Base64 and back, with full Unicode support.

Plain text

Base64

The result appears here as you type

About the Base64 Encoder/Decoder

Convert plain text to Base64 and Base64 back to readable text with DevNest's free Base64 converter. The result updates live as you type, and text is handled as UTF-8, so accented letters, non-Latin scripts and emoji all convert correctly.

The decoder is forgiving: it accepts URL-safe Base64, ignores line breaks and spaces, and adds missing padding automatically. All conversion happens in your browser.

How to use the Base64 Encoder/Decoder

  1. 1

    Pick a direction

    Choose Encode → Base64 to encode text, or Decode → Text to decode Base64.

  2. 2

    Enter your input

    Type or paste into the input panel — the result appears instantly.

  3. 3

    Adjust options

    Turn on URL-safe mode to get output that is safe to use in URLs and filenames.

  4. 4

    Copy, download or swap

    Copy or download the result, or use the swap button to reverse the conversion.

Frequently asked questions

What is Base64?

Base64 is a way of representing any data using only 64 printable characters (A–Z, a–z, 0–9, + and /). It is commonly used to embed data in JSON, HTML, CSS, emails, URLs and HTTP headers such as Basic authentication.

Is Base64 a form of encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it instantly, so it should never be used to protect passwords or sensitive data.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ and usually drops the = padding, so the result can be used in URLs, filenames and JWTs without extra escaping. The decoder accepts both standard and URL-safe Base64.

Does it support emoji and non-English text?

Yes. Text is converted to UTF-8 bytes before encoding and decoded back as UTF-8, so emoji and characters from any language round-trip correctly.

Why does decoding say the data is not valid UTF-8 text?

The Base64 decoded successfully, but the bytes are not readable text. This usually means the Base64 represents binary data such as an image, PDF or compressed file.

Why is Base64 larger than the original?

Base64 uses 4 characters to represent every 3 bytes of data, so encoded output is about 33% larger than the input.