Small tools. Better flow.

Base64 studio

Convert text, files, and images to Base64 or Data URIs.

Usage guide

Your input stays in this browser.

Input & options

Files 5 MB

View code examples ↓

Result

Your result will appear here.

Code examples

Starting points for your own code. Run them in the environment shown below.

Node.js 22+ · ES module (.mjs)

Current inputs apply only to fields used by the example. Selected files are not embedded.

const text = "안녕 tools";
const encoded = Buffer.from(text, "utf8").toString("base64");
const dataUri = "data:text/plain;charset=utf-8;base64," + encoded;
console.log(encoded);
console.log(dataUri);
console.log(Buffer.from(dataUri.slice(dataUri.indexOf(",") + 1), "base64").toString("utf8"));

Put it to work

Convert text, files, and images to Base64 or Data URIs.

Details that matter

Format and meaning

Preserves Data URI MIME and bytes. Image previews allow only PNG, JPEG, WebP, and GIF.

Supported scope and limits

Files 5 MB

Split inputs that exceed the limit. If a format or algorithm is unsupported, choose a tool that matches your requirements instead of silently changing the format.