Peregrine falcon logoPeregrine Dev

Base64 Encode/Decode — Convert Online Free

Encode text to Base64 or decode Base64 back to text with full Unicode support. Instantly. No sign-up required.

How to base64 encode

  1. 1Type or paste your text in the input area
  2. 2Click 'Encode' to convert text to Base64 or 'Decode' to convert Base64 back to text
  3. 3View the result in the output area
  4. 4Click 'Copy' to copy the output to your clipboard

About This Tool

Base64 encoding converts binary data or text into an ASCII string representation using a set of 64 printable characters. It is widely used for embedding data in URLs, email attachments (MIME), JSON Web Tokens, data URIs in HTML and CSS, and anywhere binary data needs to be safely transmitted as text.

This free Base64 encode tool handles Unicode text correctly using the TextEncoder API to convert characters to UTF-8 bytes before encoding. This means you can encode text in any language — including emoji, Chinese, Arabic, and other non-ASCII characters — without errors. Decoding reverses the process and restores the original text faithfully.

All processing happens locally in your browser. Your data is never sent to a server, making this tool safe for encoding sensitive values like API keys, tokens, or credentials. There are no usage limits and no account required.

Frequently Asked Questions

Base64 is used to represent binary data as ASCII text. Common uses include embedding images in HTML (data URIs), encoding credentials for HTTP Basic Auth, storing binary data in JSON, and encoding email attachments.

Yes. The tool uses the TextEncoder API to properly convert Unicode text to UTF-8 bytes before Base64 encoding, so characters like accented letters, CJK characters, and emoji are all handled correctly.

The native btoa() function only works with Latin-1 characters and throws an error on Unicode. This tool first converts text to UTF-8 bytes using TextEncoder, then encodes those bytes to Base64, avoiding the limitation.

No. Base64 is an encoding scheme, not encryption. It does not protect data — anyone can decode Base64 back to the original content. For security, use proper encryption algorithms.

No. All encoding and decoding happens locally in your browser. Your data is never sent to any server and is not stored or logged.

Related Tools