Base64 encoder & decoder
Encode text to Base64 and decode Base64 back to text, including URL-safe Base64 — all in your browser.
About the Base64 encoder & decoder
Handytool's Base64 encoder converts text to Base64 and back in a single click, without ever sending your input to a server. Switch between standard Base64 and the URL-safe variant (used in JWTs and signed URLs), paste any UTF-8 text, and copy the result straight to your clipboard. Because everything runs locally, you can safely paste API keys, tokens, or sensitive strings without privacy risk.
Base64 encoder & decoder features
- 01
Standard and URL-safe Base64
Toggle between the classic Base64 alphabet (+, /, padding) and the URL-safe variant (-, _, no padding) used by JWTs, OAuth, and signed URLs. The same tool handles both without any dependency lookup.
- 02
Full UTF-8 support
Non-ASCII text — emoji, Cyrillic, Chinese, Arabic — encodes and decodes correctly because Handytool uses native TextEncoder and TextDecoder under the hood. No more "malformed UTF-8" errors from older Base64 tools.
- 03
Private by design
Encoding and decoding happen entirely in your browser. Nothing is uploaded, logged, or stored. Paste API tokens or secret strings safely — they never leave your device.
Base64 encoder & decoder FAQ
- What is Base64 and when should I use it?
- Base64 represents binary data as printable ASCII characters. It's used to embed images in CSS, send binary payloads over JSON APIs, store credentials in HTTP headers, and encode JWT claims. It's not encryption — anyone can decode it — but it's useful whenever a channel only accepts text.
- What is URL-safe Base64?
- Standard Base64 uses + and / characters that have special meaning in URLs. URL-safe Base64 replaces them with - and _ and drops the trailing = padding. JWTs, OAuth tokens, and signed URLs all use this variant. Toggle the option on when working with those formats.
- Does Handytool handle Unicode and emoji correctly?
- Yes. The encoder converts your text to UTF-8 bytes first using the browser's TextEncoder, so emoji, accented characters, and non-Latin scripts encode and decode losslessly.
- Is Base64 encryption?
- No. Base64 is encoding, not encryption — it's fully reversible by anyone. Use it to transport data safely through text channels, not to hide secrets. For actual secrecy, use real encryption (AES, RSA, TLS).
- Is my input uploaded to a server?
- Never. The encoder runs entirely in your browser using the built-in btoa / atob and TextEncoder APIs. Nothing is sent to a server, logged, or stored.
Related tools
Utility →- Live
URL encoder & decoder
Percent-encode text for URLs or decode percent-encoded strings back to readable text — instantly, privately.
UtilityRuns locallyOpen - Live
SHA & hash generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes of any text, in hex or Base64 — all in your browser.
UtilityRuns locallyOpen - Live
UUID generator
Generate cryptographically random UUID v4 or time-ordered UUID v7 identifiers, one or many at a time — in your browser.
UtilityRuns locallyOpen
Explore other tools
All tools →- Live
PDF to JPG
Convert each page of a PDF into a sharp JPG, PNG, or WebP image right in your browser — no upload, no quality loss.
PDFRuns locallyOpen - Live
Remove background
Erase the background of a photo using an in-browser AI model — no upload, your images stay on your device.
ImageRuns locallyOpen - Live
Trim Video
Cut the start or end of a video with frame-level precision.
VideoOpen - Live
Trim audio
Cut a section of an audio file.
AudioRuns locallyOpen - Live
Markdown to HTML
Convert Markdown into clean HTML right in your browser.
DocumentRuns locallyOpen