Base64 Encode & Decode
Convert text to Base64 and back, turn a file into a data URI, or save a Base64 string as a file.
Runs in your browser — nothing is uploaded.
Use - and _, no padding.
Copied
File to Base64
Reading…
Loaded: ·
Add the data:…;base64, prefix.
Base64 to file
Paste Base64 text or a data:…;base64, URI.
How to use it
- Pick Encode or Decode and type or paste your text. The result updates as you type.
- For URLs, JWTs and filenames tick “URL-safe”: it uses - and _ and drops the = padding.
- To work with a file, open the File tab: drop a file to get its Base64 or data URI, or paste Base64 and download the file.
Frequently asked questions
Is my data uploaded?
No. Everything runs in your browser; text and files never leave your device.
Does it handle emoji and accents?
Yes. Text is converted to UTF-8 first, so any character round-trips correctly.
What is URL-safe Base64?
A variant that uses - and _ instead of + and /, and usually omits the = padding, so it can sit in a URL or filename unescaped.
Is there a file size limit?
Files up to 20 MB. Base64 is about a third larger than the original data.
Is Base64 encryption?
No. Anyone can decode it. Do not use it to protect secrets.
Related tools
URL Encode & Decode
Percent-encode and decode URLs and query strings online: encodeURIComponent, encodeURI and form encoding (+ for spaces). Private, in your browser.
Hex, Binary & Decimal Converter
Convert text to hex, binary or decimal bytes and back, with a UTF-8 byte view and hex dump. Handles emoji and accents. Private, in your browser.
JWT Decoder & Verifier
Decode a JSON Web Token and verify its HS, RS, PS or ES signature in your browser. Shows exp, iat and nbf as dates. The token never leaves your device.