Skip to main content
Y YunoDB Tools 中文 AI tools directory ↗

Base64 Decode & Encode

Decode Base64 back to readable text or encode text to Base64, with correct UTF-8 handling for accented letters, CJK characters and emoji. Tick URL-safe to use the - and _ alphabet without padding, and use Swap to flip the result back into the input. You can also pick an image file and get a Base64 Data URI to embed in HTML or CSS. All encoding and decoding happens in your browser, and nothing is uploaded.

Share Twitter Reddit

Image → Base64 Data URI

Pick an image to get a Data URI you can embed directly in HTML or CSS.

How to use the Base64 Encoder / Decoder

  1. Click Encode or Decode, and tick URL-safe if you need the URL-safe alphabet.
  2. Paste text or a Base64 string into the Input box. The Result updates as you type.
  3. Click Copy to copy the result, or ↑↓ Swap to move it back into the input and reverse the direction.
  4. To convert an image, choose a file under Image → Base64 Data URI and copy the generated string from the box below.

Frequently asked questions

Click Decode and paste the string into the Input box. The decoded text appears in the Result box straight away. Both standard and URL-safe Base64 are accepted.
Yes. Text is encoded as UTF-8 before Base64, so accented letters, Chinese characters and emoji round-trip correctly.
It replaces + and / with - and _ and drops the trailing = padding, so the result can be used in URLs and file names.
A Data URI can go straight into an img src or a CSS background, saving a request for small icons. Avoid it for large images: Base64 makes data about a third larger.
No. Encoding, decoding and image conversion all run locally in your browser.

Looking for more AI and software tools? Browse the yunodb.com tools directory ↗.