Base64 Encode & Decode
Encode text to Base64 and decode it back, with full Unicode support and a URL-safe option. Free, instant, nothing leaves your browser.
Runs 100% on your device - nothing you enter or upload leaves your browser.
How to use the Base64 encoder
Paste text and press Encode to get Base64, or paste Base64 and press Decode to get the original text. Turn on URL-safe output when the result goes into a link or filename.
Common uses
- Embedding small data in JSON, HTML or CSS.
- Reading Base64 blobs from APIs and email headers.
- Preparing data URIs for images and fonts.
Frequently asked questions
Does this handle Hindi and other non-English text?
Yes. Text is converted with UTF-8 before encoding, so Hindi, emoji and every other Unicode character round-trips correctly. Many older tools corrupt non-ASCII text.
What is URL-safe Base64?
Standard Base64 uses + and /, which break URLs and filenames. The URL-safe variant replaces them with - and _ and drops the trailing = padding.
Is Base64 encryption?
No. Base64 is an encoding, not encryption - anyone can decode it. Never use it to hide passwords or secrets.
Is my data sent anywhere?
No. Encoding and decoding run entirely in your browser.
Related tools
JSON Formatter & Validator
Format, validate and minify JSON with clear error messages and a collapsible tree view.
CSV to JSON Converter
Convert CSV to JSON and back with proper quote and comma handling. Download either format.
YAML to JSON Converter
Convert YAML to JSON and back with line-precise syntax errors. Powered by js-yaml.
Hash Generator
SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text with Web Crypto. Nothing leaves your browser.