What Is base64.run and What Can You Do With It?

Updated

base64.run is a browser-based Base64 encoder and decoder. You paste text or drag in a file, and it converts the content in one direction or the other. It is useful when you need a quick one-off conversion without installing a command-line tool or writing code. The site also supports URL shortcuts, so a specific input can be encoded or decoded just by visiting a link.

What the tool does

The page presents a single working area with three modes: Auto Detect, Encode Base64, and Decode Base64. In Auto Detect mode, the tool inspects your input and decides what to do:

  • If the input already looks like Base64, it is decoded.
  • Otherwise, it is encoded.

If the input cannot be decoded as valid Base64, the page reports "Not valid Base64" rather than producing a broken result. A Copy control lets you take the output elsewhere.

Ways to get input in

Paste text

Paste into the input area. With Auto Detect active, you do not have to tell the tool which direction you want — it infers it from the content.

Drag and drop a file

Drag a file onto the page to convert it quickly. This is the practical route for binary content such as images, since Base64 is often used to embed files rather than plain text.

Use a URL shortcut

You can link directly to an encoded or decoded result. The documented pattern is:

https://base64.run/hello world
https://base64.run/aGVsbG8gd29ybGQ=

Visiting the first link encodes the text after the host; visiting the second decodes the Base64 string. The page notes that encoded URI components will be decoded, so percent-encoded characters in a shared link are handled before conversion.

What Base64 is actually for

Base64 represents data in a portable text form. The site highlights one main use case: web development. Base64-encoded copies of images, CSS, fonts, and JavaScript can be placed where you would otherwise reference a URL. That can:

  • Remove dependencies on external files.
  • Reduce the number of network requests.
  • Let a document exist on its own.

This works through the data URI format:

data:${mediatype};base64,${data}
  • ${mediatype} is a MIME type describing the file, such as image/jpeg, image/png, image/gif, text/javascript, text/css, font/opentype;charset=utf-8, application/font-woff;charset=utf-8, or application/font-ttf;charset=utf-8.
  • ;base64, marks how the data was encoded.
  • ${data} is the Base64-encoded file contents.

Why Base64 exists at all

The page explains the underlying reason with ASCII. ASCII is a standard for 128 characters — letters, numbers, punctuation, spaces, and some control instructions. Each supported character maps to a number, so systems that understand the standard can translate characters into numeric representations, process them, and share them. Base64 builds on this idea of a common, portable representation so data can move between systems that agree on the same encoding.

When to reach for it

Use base64.run when you want a fast, no-install conversion: decoding a token or payload you were handed, encoding a snippet for a data URI, or turning a small file into an embeddable string. For repeated or automated conversions inside a build pipeline, a library or command-line tool will fit better than a web page.