Base64 Encode/Decode
Encode or decode Base64 with proper UTF-8 handling.
Informational only; verify critical results independently.
How to use
- Paste plain text to encode or a Base64 string to decode.
- Choose Encode or Decode; the result updates automatically.
- Encoding uses UTF-8 so Unicode and emoji become valid Base64.
- Copy the result; use in data URLs, APIs, or config as needed.
- Decode to recover the original text; invalid Base64 will show an error.
- We don’t store or send your input; all processing is in the browser.
Examples
- Encode 'Hello, world!' for a data URL or API
- Decode a Base64 token or config value
- Encode text with emoji (e.g. 'Test ✓')
- Encode JSON for embedding in a URL or header
- Decode a Basic auth string (user:pass encoded)
- Encode a short script or snippet for safe transfer
FAQ
- Binary files?
- This tool is for text. For files, use a desktop or command-line Base64 tool.
- Why does decode fail?
- Input may have extra spaces, wrong alphabet, or be truncated. Paste only the Base64 block.
- URL-safe Base64?
- We use standard Base64 (+/). If your system expects URL-safe (-_), replace + with - and / with _ after encoding.
- Is Base64 encryption?
- No. It’s encoding; anyone can decode it. Don’t use it to hide secrets.
- Can I encode huge text?
- Large input may be slow in the browser; keep to a reasonable size (e.g. under 1 MB).
- Where is data processed?
- In your browser only; nothing is sent to our servers.
Related guides
Related tools
Last updated: 2025-09-15