Independent development & design From a useful idea to a working project.
Development · Free browser tool

Text & Image Base64 Converter

Encode UTF-8 text or an image as Base64, decode valid text and image data, and download the result locally. Base64 is encoding, not encryption.

Your inputs stay in this browser tab. No account or upload to our server is required.

Base64 is reversible encoding. It does not encrypt your text or remove image metadata. SVG and HTML are excluded from image previews.

The practical guide

Move safely between text, images and Base64

By Mubsir · Updated November 17, 2026

Choose text or image mode

Text mode converts between Unicode text and its Base64 representation. Enter ordinary text and select Encode, or paste Base64 and select Decode. Image mode reads a selected PNG, JPEG, GIF or WebP file and produces a data URL containing its declared image type and encoded bytes. You can also paste a supported image data URL, decode it and download the resulting file. These operations happen in your browser; selecting a file does not upload it to our server.

UTF-8 and valid input

Text is converted to UTF-8 bytes before encoding, so characters outside basic ASCII can round-trip correctly. Decoding first validates the Base64 alphabet and padding, then attempts to read the bytes as UTF-8. Whitespace around or inside ordinary Base64 is ignored. URL-safe Base64 using dash and underscore is normalized by the decoder. If decoded bytes are not valid UTF-8, text mode reports an error instead of pretending that binary content is meaningful readable text. Use image mode for supported image data.

Working with image data URLs

A data URL combines a media type, the Base64 marker and the encoded payload. It can be useful for a small embedded asset or a test fixture, but large images usually belong in ordinary image files. Base64 adds roughly one third to the byte size before compression, and embedding it in HTML changes caching behavior. This converter checks the supported image signature as well as the declared type. SVG and HTML are excluded from image mode to avoid treating active document content as a safe preview.

Limits, downloads and previews

This page limits selected images to five mebibytes to keep conversion manageable. Converting a file requires additional memory for its encoded text and preview, so very large assets should be handled with a local command-line or image tool. Preview images are created from a validated local Blob rather than by injecting pasted markup into the page. Downloaded files are ordinary files on your device, and you should still review their intended use. Image conversion here does not resize, optimize or strip embedded metadata.

Encoding does not protect a secret

Base64 is reversible without a password. Do not use it to hide API keys, encrypt personal records or make an unsafe file trustworthy. Encoding also does not establish a file’s ownership, authenticity or license. If a result will be sent to an API, check whether that endpoint expects raw Base64, a complete data URL or a different encoding. Keep production credentials and confidential images away from shared devices, clipboard history and browser extensions you do not trust. Clear the inputs when finished.

Frequently asked questions

Is Base64 encryption?

No. Anyone with the encoded data can decode it. Use appropriate encryption when confidentiality is required.

Why does binary data fail in text mode?

Not every byte sequence is valid UTF-8. The tool reports invalid text rather than silently replacing bytes.

Can I convert SVG images?

This image mode accepts PNG, JPEG, GIF and WebP only. SVG may contain active content and is intentionally excluded.

Try another tool

  • JSON Formatter, Validator & Minifier — Format or minify JSON, find syntax errors and copy a clean result. A free browser tool for checking API responses and configuration files.
  • Strong Password & API Key Generator — Generate random passwords or key-like tokens with your browser’s cryptographic random source. Choose length and character sets, then copy or download.
  • SEO Meta Tag & OpenGraph Generator — Create escaped HTML meta tags and preview search and social-card text for a page. Enter a title, description, canonical URL and optional image URL.
  • Word, Character & Reading-Time Counter — Count words, characters, sentences and paragraphs as you type, with an estimated reading time and a clear explanation of the counting method.