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 / DecodeHow to Use Base64 Encode / Decode
- 01
Pick Text Mode or File/Image Mode
Switch between UTF 8 Text ⇄ Base64 (with optional URL safe toggle) and File/Image → Data URI.
- 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.
- 03
Copy Output or Download Decoded File
Copy the encoded string in one click or preview and download decoded Base64 image/file data.
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.
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.
Related Tools
URL Encoder / Decoder
Encode or decode full URLs and query components plus inspect query parameters in an interactive table.
UUID & Hash Generator
Generate 1 to 50 RFC 4122 UUID v4 identifiers and compute SHA 1, SHA 256, SHA 384, and SHA 512 hashes for text or files.
JSON Formatter & Validator
Prettify, minify, validate JSON with exact line/column errors, and explore an interactive Tree View.
SVG to PNG
Upload an SVG file or paste SVG code to export crisp 1x, 2x, 4x, or custom pixel PNGs.
Image Compressor
Compress single or batch JPG, PNG, and WebP photos with quality slider and savings metrics.
Regex Tester
Test JavaScript regular expressions with flag toggles, live match & capture group highlighting, and presets.
