Base64 Encode / Decode
Encode and decode Base64 for text and files, with charset, line-by-line, MIME and URL-safe options.
Three steps, no reading required.
Paste your input
Drop text, code, or data into the input pane — from an API response, a file, anywhere.
Pick a mode
Toggle the modes above the output. The result updates instantly as you type.
Copy the result
Grab the output with Copy or Download, or fix the error shown if the input is invalid.
Try it with a sample.
Hello, DevUtilsNow!
Upload an image to get a data URI
- Sends your text or image to a server to encode it
- Treats Base64 as if it were protection
- Splits encode and decode across separate pages
Both directions, local
- Encodes and decodes text and files in the browser, in 40+ character sets
- Line-by-line, MIME 76-character, URL-safe and data URI options
- Decoded images preview inline; any binary downloads as a file
Questions worth answering upfront.
No. Base64 encoding and decoding run entirely in your browser. Nothing you enter is uploaded or stored.
Base64 encodes binary or text data as ASCII characters so it can be safely embedded in URLs, data URIs, JSON, emails and other text-only contexts.
Yes. Click Open file in Encode mode and the file is encoded in your browser. Tick Output as data URI to get a data: URL you can embed in HTML or CSS. In Decode mode, decoded images are previewed and any binary result can be downloaded as a file.
Base64 encodes bytes, not letters, so text has to be turned into bytes first. UTF-8 is the usual choice; pick another destination charset (such as ISO-8859-1 or Windows-1251) if the receiving system expects it. When decoding, Auto-detect checks for a byte-order mark, then valid UTF-8, then falls back to Windows-1252; choose the source charset yourself if the text looks garbled.
Each line separately encodes or decodes every line as its own value, which is handy for lists. Split into 76-character lines wraps output the way MIME email does. Newline separator decides whether line breaks in your text are encoded as LF or CRLF.
Base64URL (RFC 4648 §5) swaps + and / for - and _ and drops the = padding, so the value can sit in a URL or a JWT without escaping. Decode mode accepts both alphabets automatically.
No. Base64 is an encoding, not encryption. It is easily reversible and provides no security — never use it to protect sensitive data.
Yes. Choose Decode and paste the Base64, with or without a data: prefix. An image result is previewed, and any binary result, such as a PDF, can be downloaded as a file.
People who use this also reach for
Look it up
Guides that pair with this tool
Handy reference
Need another tool?
36+ browser-based utilities — all free, all private, nothing to install.