Base64 Encoder & Decoder (Text & Files)
Encode or decode UTF-8 text, URL-safe Base64, and convert images/files to Base64 Data URLs.
File / Image → Base64 Data URL
How to Use
- Select Encode or Decode mode and paste your text.
- Toggle URL-Safe Base64 if you need RFC 4648 '-' and '_' replacements without padding.
- Or drop any image/file into the File-to-Base64 box to generate a ready-to-use Data URL.
How It Works & Privacy
Uses TextEncoder/TextDecoder with UTF-8 byte arrays so international characters and emojis never break. Files are read locally via FileReader without leaving your machine.
Frequently Asked Questions
Q. Is Base64 encryption?
No. Base64 is a reversible encoding scheme for representing binary data as ASCII text, not cryptographic encryption.
Q. What is URL-safe Base64?
URL-safe Base64 replaces '+' with '-', '/' with '_', and optionally removes '=' padding so the string can safely appear in URLs and JWTs.
Related Developer Tools
Decode JSON Web Token headers and payloads locally, and inspect iat/exp timestamps instantly.
Percent-encode or decode URLs and break down complex query strings into a clean key-value table.
Compute SHA-1, SHA-256, SHA-384, and SHA-512 hashes for text or local files and verify checksums.