Text, images, and Data URIs stay in this browser. This page does not post what you type, drop, or paste to a server.

Zero-upload Base64 & Data URI studio

Browser Base64 & Image Data URI Studio

Three modes on one desk: live UTF-8 text conversion, a local image-to-Data-URI drop zone, and a Base64 restore preview with a one-click download. Everything stays in this tab.

The studio needs JavaScript in this browser. Without it, you can still read the guide and reference, but live encode, preview, and restore will not run.

Samples

Input

Output

Format notes
Standard Base64RFC 4648 alphabet with + / and = padding. Optional 76-character MIME line wrap.
JWT-safe Base64URLJWT-safe alphabet with - _ and no padding.
URL percentencodeURIComponent / decodeURIComponent on the UTF-8 text.
HexadecimalTwo hex characters per byte, lowercase by default. Spaces are allowed when decoding.

Questions

Does this studio upload my text or images?

No. Encode, decode, Data URI construction, preview, and restore run in this browser. The page does not post what you type, drop, or paste to a server.

Why not use btoa and atob?

Those functions operate on Latin-1 strings and can throw or corrupt Chinese, Japanese, Korean, or emoji. This studio encodes UTF-8 bytes with the Web Encoding API.

What is Base64URL?

A JWT-safe variant of Base64 that uses - and _ instead of + and /, and omits = padding. Use it when a value must sit in a URL or a compact JWT segment.

How does restore detect the file type?

After the bytes are decoded, the studio reads magic-byte signatures for common images, SVG markup, PDF, ZIP, and UTF-8 text or JSON. If nothing matches, the download uses a generic .bin extension.

Related tools and references

These links stay in the jmforu.com set or point at the encoding specifications named on the reference page.