Text to Base64
Encode and decode UTF-8 text in standard or URL-safe Base64 alphabets locally in browser.
Last updated:
Waiting for input...Tool Settings
Embed UTF-8 text safely inside JSON, URLs, email templates, or CSS content values, then decode it anywhere with a single Base64 decode call.
All processing executes locally in your browser. Files are handled in memory without persistent remote storage.
Text to Base64 Overview
Convert plain UTF-8 strings—including emojis, JSON, and non-ASCII characters—to Base64 and back without triggering browser `btoa` Latin-1 character errors.
Switch between encode and decode modes, toggle standard `+/` versus URL-safe `-_` Base64 alphabets, and copy output locally inside browser memory.
Client-side TextEncoder/TextDecoder UTF-8 Base64 codec.
Input & output: UTF-8 text, Standard Base64, URL-safe Base64url.
Handles full multi-byte UTF-8 text (emojis and non-Latin scripts) without breaking btoa(); large multi-MB blobs should use File to Base64.
Encoding or Decoding Base64 Text
Choose Encode or Decode conversion mode and alphabet (Standard or URL-safe).
Paste text or Base64 string into the input box.
Copy or download the converted result.
Text to Base64 FAQ
Why does native JavaScript btoa() fail on emojis or accented text?
btoa() only accepts single-byte Latin-1 characters. This tool encodes text into UTF-8 bytes via TextEncoder first so Unicode characters encode cleanly.
Is Base64 encryption?
No. Base64 is a reversible text encoding for binary transport—anyone can decode it immediately. Never treat Base64 as secrecy.
Discover More Tools
Related utilities across the Imgira catalog.