Encode and Decode
Convert text to Base64 and back again, both directions in one tool with live output.
Encode text to Base64 and decode Base64 back to text in your browser. Includes a URL-safe variant and a file-to-Base64 mode. Free, no signup, nothing uploaded.
Choose Encode to turn text into Base64, or Decode to turn Base64 back into text. The output updates as you type.
Type or paste into the left box. Turn on URL-safe if the result needs to go in a URL or a filename.
Copy the output, or use Swap to send it back to the input and flip the direction in one click.
Base64 is a way to write any data, text, images, or files, using only 64 plain characters that survive being passed through systems built for text. It is not encryption and it hides nothing, it just repackages bytes into a form that email, URLs, JSON, and config files can carry without choking on special characters.
You run into it constantly: data URIs that embed an image straight into HTML or CSS, tokens and basic auth headers, encoded values in API payloads, and email attachments. Decoding it turns that wall of characters back into the original text so you can read what is actually there.
This tool does both directions in the browser. Encode text or a whole file, switch to the URL-safe alphabet when the result has to live in a link, and decode any Base64 string back to readable text. Because it runs locally, you can paste sensitive values without them leaving your device.
Convert text to Base64 and back again, both directions in one tool with live output.
Handles accents, emoji, and non-Latin scripts correctly, so nothing gets mangled in the round trip.
Switch to the URL-safe alphabet that uses dashes and underscores with no padding, for URLs and filenames.
Drop in any file to get its Base64 string or a ready-to-use data URI for embedding.
Send the output back to the input and flip encode to decode without retyping anything.
Everything happens in your browser. Your text and files are never uploaded or stored.
More Developer tools you might find useful.
Common questions about Base64 encoding and decoding.