Base64 Encoder
Encode or decode text to/from Base64, UTF-8 safe.
About the Base64 Encoder
Convert any text to Base64 or decode Base64 back to readable text. Handles full UTF-8 input correctly and supports the URL-safe Base64 variant (- and _ instead of + and /) used in tokens and URLs.
Popular uses
- base64
- encode
- decode
- utf-8
- url-safe
Examples
Encode text
Hello, world!Output
SGVsbG8sIHdvcmxkIQ==Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Base32 Encoder
Encoders & Crypto
Encode or decode text using RFC 4648 Base32.
HTML Entity Encoder
Encoders & Crypto
Encode or decode HTML entities in text.
URL Encoder
Encoders & Crypto
Encode or decode strings using encodeURIComponent/encodeURI.
Basic Auth Header Generator
Encoders & Crypto
Build or decode an HTTP Basic Authorization header.
JWT Decoder
Encoders & Crypto
Decode a JWT's header and payload, and check expiry.
File Base64 Encoder/Decoder
Encoders & Crypto
Convert any file to a Base64 data URI, or decode Base64 back to a file.
Works well with
Next steps from other categories.
String Escaper
Dev Utilities
Escape and unescape strings for JSON, JS, HTML, XML, SQL, RegExp, and shell.
JSON String Escape
JSON
Escape special characters for use inside a JSON string.
JSON String Unescape
JSON
Reverse JSON string escaping back to readable text.
JWT Inspector
Security
Decode a JWT and audit its claims for common issues.
Frequently asked questions
Read more
- Base64 encoding explained: when to use it, when not to
Base64 turns binary into text-safe ASCII, but it isn't compression or encryption. Here's what it actually does and where it fits.
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser