Encoding, Hashing & Security

Base64 Encode / Decode

Encode and decode Base64 for text and files, with charset, line-by-line, MIME and URL-safe options.

No upload, ever No account needed Works offline
Input (Text or Base64)
0 characters
Auto-updated
// how to use it

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.

// examples

Try it with a sample.

Sample 1
Hello, DevUtilsNow!
TYPICAL ONLINE TOOL

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
DEVUTILSNOW

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
// faq

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.

Need another tool?

36+ browser-based utilities — all free, all private, nothing to install.

Browse all tools →
Last updated: Oct 10, 2026