SanWebCorner · Developer Tools

Base64 Encoder & Decoder for UTF-8 Text

Encode Unicode text to standard Base64 or decode Base64 back to valid UTF-8 text. The conversion runs locally in your browser and supports accented letters, Tamil text and emoji.

Free · no signupLocal browser processingCopy & download

How to encode or decode Base64

  1. Paste text or standard Base64 into the input editor.
  2. Choose Encode to Base64 for text, or Decode to text for Base64.
  3. Copy or download the output. Choose Load sample to try Unicode text.

Base64 example

Text: Hello
Base64: SGVsbG8=

Unicode support and input rules

The tool converts text to UTF-8 bytes before encoding. Decoding rejects byte sequences that are not valid UTF-8 rather than silently replacing them with unreadable characters. Standard Base64 uses + and /; URL-safe Base64 is a separate format and is not accepted here. ASCII spaces, tabs and line breaks in encoded input are ignored. Omitted padding is accepted when otherwise valid; malformed padding and non-canonical padding bits are rejected.

This is a text converter, not a general binary-file decoder. The input limit is 2 MiB. MDN explains the byte-oriented behavior of btoa() and the need to handle Unicode text as bytes.

Base64 is not encryption

Anyone can decode standard Base64. Use it to represent data in a text-compatible form, not to protect passwords, API keys or private information. Encoding is not a security control.

Privacy

The converter code runs locally without sending the input to an encoding API or saving it in browser storage. This website still includes normal advertising and analytics services. Use an offline tool when data must stay outside websites.

Frequently asked questions

Why does my Base64 fail to decode?

It may contain invalid characters, bad padding, URL-safe symbols or binary bytes that are not valid UTF-8 text. This tool reports an error and clears old output.

Does it support emoji?

Yes. Text is encoded as UTF-8 before Base64 conversion.

Does decoding execute anything?

No. The result is displayed as text in a read-only editor. It is not inserted as HTML or executed as JavaScript.

More developer tools