DengWoLai DengWoLai
Dev · DengWoLai

Base64 Encoder / Decoder (Text and Files)

Base64 encoder converts binary or text into the 64-character alphabet used inside JSON, data URIs and email attachments. It is an encoding, not encryption — anyone can reverse it.

Runs locally · files stay on device · works offline

How it works in 4 steps

  1. 1

    Pick or drop

    Select or drag files into the card — loaded directly into local memory.

  2. 2

    Set options

    Adjust target KB, format, dimensions or filters with instant feedback.

  3. 3

    Process locally

    Canvas, WebAssembly, or Web Crypto completes the job on your device.

  4. 4

    Save result

    Download directly; close the tab to clear everything from memory.

When to use this

Scenario Recommended Why
Embedding a small image in CSS or HTML Base64 Encoder Removes one HTTP request
A JWT segment looks like gibberish Base64 Decoder JWTs are base64url encoded, not encrypted
You need to hide a password Use encryption Base64 is trivially reversible — it is not security

Privacy & Offline Guarantee

Ready to use with zero installation or login. Once loaded once, core dependencies cache locally so the tool works offline.

FAQ

Is Base64 encryption?

No. It is a reversible encoding with no key. Anyone can decode it in one step; never use it to protect secrets.

What is base64url?

A variant that swaps +/ for -_ and drops padding, used in JWTs and URLs where those characters would break parsing.

Is my data uploaded?

No — encoding uses btoa/atob or a FileReader in your browser.

Something failed, or you wish this tool also did something else? Tell me →

Related Tools

Dev
Image to Base64
Turn an image into a data URI, with size comparison.
Local only →
Dev
URL Encoder / Decoder
Percent-encode URLs — see both encoder variants.
Local only →
Dev
HTML Escape / Unescape
Escape HTML entities so text shows literally.
Local only →
Dev
JSON to YAML and Back
Convert between JSON and YAML — config never uploaded.
Local only →

Ready to process your files privately?

Back to tool ↑