Convert text, files, and images to and from Base64 instantly. URL-safe mode, MIME line wrapping, live byte stats. Runs entirely in your browser.
| Use Case | Example / Format | Variant | Note |
|---|---|---|---|
| Image data URI | data:image/png;base64,iVBORw0K… | Standard | Embed images inline in HTML/CSS |
| JWT tokens | eyJhbGciOiJIUzI1NiJ9.eyJzdWI… | URL-safe | Header.Payload.Signature, no padding |
| HTTP Basic Auth | Authorization: Basic dXNlcjpwYXNz | Standard | username:password encoded |
| Email attachments | Content-Transfer-Encoding: base64 | MIME (76-char wrap) | MIME email standard requires line breaks |
| CSS/HTML data URIs | background: url(data:image/svg+xml;base64,…) | Standard | Inline fonts, icons, small images |
| API file upload | {"file": "JVBERi0xLjQ…"} | Standard | Send binary files in JSON payloads |
| URL query params | ?data=SGVsbG8tV29ybGQ | URL-safe | Avoids + and / breaking URL parsing |
| Cookie values | Set-Cookie: session=dG9rZW4… | URL-safe | Safe characters for cookie storage |
Encoding or decoding Base64 with Rai Paruhang takes seconds — no account, no upload, and nothing installed. Here is everything you need to know, including image conversion and device-specific tips.
Paste text or upload a file
Type or paste text directly into the input box, or drag and drop an image (JPG, PNG, SVG) to convert.
Choose Encode or Decode
Switch to Encode if you're starting from text or an image, or Decode if you already have a Base64 string you want to convert back.
Copy or download the result
Copy the Base64 string with one click, or preview and download the decoded image. Everything happens inside your browser — nothing is sent to any server.
Type or paste any text into the input box and click Encode. The Base64-encoded string appears instantly below — click the copy icon to grab it for use in code, JSON, or a data URI.
Paste your Base64 string into the input box and click Decode. The original text is restored immediately — useful for reading API payloads, JWT segments, or encoded config values.
Drag and drop a JPG, PNG, or SVG file into the upload area. The tool generates a ready-to-use Base64 data URI, which you can paste directly into your HTML or CSS to embed the image without a separate file request.
Paste your Base64 string — with or without the data:image/png;base64, prefix — and click Decode. A live preview of the image appears, and you can download it as a file with one click.
This tool works in any modern browser — Safari and Chrome on Mac, Chrome or Edge on Windows, Safari on iPhone, or Chrome on Android. There is nothing to install. On mobile, you can upload images directly from your Photos app or local storage, and downloaded files save to your device just like any other download.
Unlike many Base64 tools, this one never sends your text, images, or files to a server. All encoding and decoding happens locally in your browser using JavaScript — making it safe for sensitive data, API keys, or private images. It even keeps working offline once the page has loaded.