Encode text or images to Base64, or decode a Base64 string back to plain text — entirely in your browser. Useful for embedding images in code, debugging API payloads, or working with data URIs. Nothing is uploaded anywhere.
Base64 is a way of representing binary data — like an image — as plain text, so it can be safely embedded in places that only accept text, such as HTML, CSS, JSON payloads or email. This tool lets you convert in both directions instantly.
You can encode plain text, decode an existing Base64 string, or upload an image to get its Base64 data URI — handy for embedding small icons directly into your code without a separate image file.
Step 1 — Choose Encode or Decode. Use Encode to turn plain text into Base64, or Decode to turn a Base64 string back into readable text.
Step 2 — Paste your input or upload an image. Text goes in the textarea; images can be dropped in through the file picker to get an instant Base64 data URI.
Step 3 — Copy the result. Click Copy Result to grab the output and paste it wherever you need it — your code, an API request, or a config file.
Trying to decode plain text. If the input isn't valid Base64, decoding will fail — the tool will show an error rather than guessing.
Assuming Base64 is encryption. It isn't — it's just an encoding format. Anyone can decode a Base64 string back to its original content, so don't use it to protect sensitive data.
Embedding large images as Base64. Base64 increases file size by roughly 33%, so it's best for small icons and images, not large photos or videos.
No. Base64 is a reversible encoding format, not encryption — anyone with the Base64 string can decode it back to the original content in seconds.
Yes. Use the file upload option to convert any image into a Base64 data URI you can paste directly into an HTML `img` tag or CSS `background-image`.
Decoding fails if the input isn't valid Base64 — for example, if it contains spaces, line breaks in the wrong place, or characters outside the Base64 alphabet.
No. All encoding and decoding happens locally in your browser using built-in JavaScript functions — nothing is sent to a server.
Base64 shows up everywhere in web development — from embedding small images directly in CSS to encoding attachments in emails and authentication tokens in API headers.