Encode and decode Base64.

Convert Unicode text to Base64 and decode Base64 back to text locally in your browser.

ResultReady

How it works

The page converts text to bytes before Base64 operations, avoiding broken non-ASCII characters.

Unicode is handled with TextEncoder and TextDecoder.

Practical examples

  • Encode a short Unicode string for a config value or test case.
  • Decode a Base64 or URL-safe Base64 snippet while debugging payloads.
  • Check whether a pasted value is valid Base64 before using it elsewhere.

How to read the result

  • Encoding converts text to bytes before Base64 output.
  • URL-safe mode replaces plus, slash, and padding characters for URL/query use.
  • Invalid input returns an error instead of leaving a misleading result.

Limits and privacy notes

  • Base64 is encoding, not encryption.
  • Binary files are not handled by this text-focused page.
  • Input and output stay in the browser.
Mode choice

Standard or URL-safe

  • Use standard Base64 for plain snippets.
  • Use URL-safe Base64 for query strings and path fragments.
  • Padding may be omitted in URL-safe mode.
Security

Encoding is not encryption

  • Base64 only changes representation.
  • Anyone can decode it.
  • Do not treat encoded secrets as protected.
Unicode

Text-safe conversion

  • Text is encoded to bytes first.
  • Decoded output returns Unicode text.
  • This page is not a binary file converter.
Copied