Base64 Encoder & Decoder
Convert text or files to Base64 and back — with full Unicode and URL-safe support.
- Runs in your browser — nothing uploaded
- Instant, no waiting in a queue
- Free, no watermark, no daily limits
Type text to get its Base64 encoding as you type, or paste Base64 to decode it. Text is converted as UTF-8, so emoji and non-Latin scripts round-trip correctly, and the URL-safe variant (using - and _ without padding) is supported both ways. Drop any file to get its Base64 string and a ready-to-use data URI, or decode Base64 that holds binary data straight into a downloadable file.
Related: Image to Base64
How to Encode or Decode Base64
- 1
Pick a mode
Choose Encode or Decode, and turn on URL-safe if you need the - and _ alphabet.
- 2
Paste your input
Type or paste text or Base64 — the result updates instantly. Use the file box to convert a file.
- 3
Copy or save
Copy the result, copy a data URI for a file, or save decoded binary data as a file.
Why use ToolzBank Base64 Encoder / Decoder?
- Live encode and decode as you type
- UTF-8 safe — emoji and all languages supported
- URL-safe Base64 (RFC 4648 §5)
- File and image to Base64 with data URI
- Decode Base64 back into a downloadable file
- Accepts input with or without padding or line breaks
Frequently asked questions
What is Base64 encoding?
Is Base64 encryption?
What is URL-safe Base64?
Why does decoding show “binary data”?
Is my data uploaded?
More free developer tools
JSON Formatter & Validator
Beautify, minify & validate JSON
JSON to CSV
Flatten JSON arrays into CSV/Excel
XML Formatter
Pretty-print & validate XML
JWT Decoder
Decode & verify JSON Web Tokens locally
Regex Tester
Test regular expressions live
Timestamp Converter
Unix epoch ⇄ human-readable dates
Diff Checker
Compare two texts line by line
URL Encoder / Decoder
Percent-encode, decode & parse URLs
HTML, CSS & JS Formatter
Beautify HTML, CSS & JS; minify HTML & CSS
Hash Generator
MD5, SHA-1, SHA-256 & SHA-512 for text or files
Number Base Converter
Binary, octal, decimal & hex conversion
PX to REM Converter
Convert px ⇄ rem, or a whole stylesheet
Color Converter
HEX, RGB, HSL, HSV & CMYK with contrast check
YAML to JSON Converter
Convert YAML ⇄ JSON with error lines
SQL Formatter
Beautify SQL for MySQL, PostgreSQL & more
Markdown Editor
Write visually, download a .md file
From Our Blog
How to Decode a JWT and Verify Its Signature (Safely)
What is inside a JSON Web Token, how to read its claims and expiry, and how to verify the signature locally without sending the token anywhere.
URL Encoding Explained: How to Encode and Decode URLs
Why spaces become %20, when to use encodeURIComponent vs encodeURI, and how to encode, decode and inspect URLs and query strings instantly.
What Is Base64 Encoding and How to Encode/Decode It Online
Base64 isn't encryption — it's a way to safely represent binary data as plain text. Here's what it actually does, where it shows up, and how to encode or decode it instantly.
