Base64 Encoder/Decoder
Encode and decode Base64 text and files. Runs in your browser.
File to data URL
Embed a small image or file directly in HTML or CSS.How to use
Choose Encode or Decode, then type or paste your text. The result updates as you type.
Tick URL-safe to use - and _ instead of + and / (handy for URLs and tokens). To embed a small file, pick it under "File to data URL".
FAQ
Is my data sent anywhere?
No. This tool runs entirely in your browser. Nothing you type, paste or upload is sent to a server or stored anywhere.
Does it handle emoji and accented characters?
Yes. Text is converted to UTF-8 bytes before encoding, so any character round-trips correctly.
What is URL-safe Base64?
A variant that uses - and _ instead of + and / and drops the = padding, so it can be used in URLs and filenames.