Base64 Encoder & Decoder
UTF-8 safe Base64 / Base64URL text encoder-decoder plus Image ↔ Base64 Data URI converter.
Key Features of Base64 Encoder & Decoder
- Full UTF-8 TextEncoder/TextDecoder support (handles Hindi, Arabic, Emojis without `btoa` crashes)
- Toggle URL-safe Base64url (`-` and `_`, optional padding strip) for JWTs & APIs
- File/Image tab: Drop any image/SVG to get a ready-to-paste `data:image/...;base64,...` URI
- Reverse preview: Paste a Base64 image string to preview and download the decoded image
How to Use Base64 Encoder & Decoder Online
- 1Choose Text Base64 or Image/File Data URI mode.
- 2Type plain text or paste a Base64 string and click Encode or Decode.
- 3Copy the output or preview decoded image files directly.
Frequently Asked Questions — Base64 Encoder & Decoder
Why do standard `btoa()` tools fail on Unicode or Emoji characters?
Browser `btoa()` only accepts Latin1 bytes. Free Tool Desk converts UTF-8 bytes cleanly with `TextEncoder` first so Hindi, Chinese, and emojis encode accurately.
What is URL-safe Base64url mode used for?
JWT tokens and URL query parameters replace `+` and `/` with `-` and `_` so links don't break.
Can I embed small icons directly into CSS or HTML using Base64?
Yes! Switch to the File/Image tab to generate an exact `data:image/png;base64,...` snippet.
Related Free Tools
All Developer & Code Tools →URL Encoder / Decoder
Encode/decode URLs safely (`encodeURIComponent` / `encodeURI`) plus interactive Query Parameter Inspector.
JSON Formatter & Validator
Pretty-print, validate with exact syntax line numbers, minify, and browse JSON as a collapsible tree.
MD5 / SHA-256 Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 & HMAC digests for text OR verify local file checksums.
HTML / CSS / JS Minifier & Beautifier
Minify production HTML/CSS/JS with Terser & CSSO OR beautify ugly minified code cleanly.