Skip to main content
webfish
100% Private. Processed locally in your browser

Base64 Encoder & Decoder

Convert UTF 8 text, URL safe strings, and files to and from Base64 in browser.

Continue Your Workflow

Suggested next steps after Base64 Encode / Decode
Step by Step Guide

How to Use Base64 Encode / Decode

  1. 01

    Pick Text Mode or File/Image Mode

    Switch between UTF 8 Text ⇄ Base64 (with optional URL safe toggle) and File/Image → Data URI.

  2. 02

    Enter Text or Drop a File

    Type or paste text/Base64 strings, or drop an image to generate its Base64 payload plus ready to paste <img> and CSS url() snippets.

  3. 03

    Copy Output or Download Decoded File

    Copy the encoded string in one click or preview and download decoded Base64 image/file data.

Built for Speed & Privacy

Key Features & Privacy Guarantee

  • Full UTF 8 multi byte support (emojis, accented letters, CJK) without btoa Latin 1 crashes.
  • Optional URL safe Base64 (URL safe alphabet with optional padding strip) plus instant HTML/CSS Data URI snippets.
  • 100% client side encoding. Safe for auth headers, JWT payload inspection, and private assets.
Common Questions

Frequently Asked Questions

Why does standard JavaScript btoa() fail on emojis or non ASCII text?

Legacy btoa() only accepts single byte Latin 1 characters. webfish encodes via TextEncoder UTF 8 byte arrays first so emojis and international scripts round trip cleanly.

What is URL safe Base64?

URL safe Base64 (RFC 4648 §5) replaces plus and slash characters with URL safe symbols so encoded tokens can appear safely inside URL paths and query parameters without percent encoding.

Can I paste a Base64 Data URI and preview or download the original image?

Yes. Switch to File/Image mode and paste a data:image/..;base64,.. String to preview the rendered image and download it locally.

Are encoded tokens or files sent to webfish servers?

No. Every byte is processed locally inside your browser tab.

Explore More Utilities