Skip to content
Free tool · Data & formats

Base64 & URL Encoder

Encode and decode Base64, URL-safe Base64URL and percent-encoded URLs with full UTF-8 support, or turn a file into a data URI. Everything runs locally in your browser.

Runs in your browser — nothing is uploadedNo sign-up · no tracking of your input

Text to encode

Base64 output

Encoding runs locally in this browser with full UTF-8 support. Nothing is sent to a server.

How to use the Base64 & URL Encoder

  1. 1

    Pick the encoding

    Choose Base64, Base64URL (used in JWTs and URLs), URL encoding, or File to data URI for images and other files.

  2. 2

    Encode or decode

    Switch between encode and decode and type or paste your input. The result updates live; invalid characters or broken padding are reported clearly.

  3. 3

    Copy or continue

    Copy the output, or use it as the new input to reverse the conversion. Data URIs can be copied directly into HTML or CSS.

FAQ

Base64 & URL Encoder: frequently asked questions

How do I decode Base64 to text?

Select Base64, switch to Decode and paste the encoded string. The bytes are decoded as UTF-8, so umlauts, accents and emoji appear correctly. If the data is binary rather than text, you get a warning and can download the bytes instead.

What is the difference between Base64 and Base64URL?

Base64URL replaces + with - and / with _ and usually omits the = padding, so the value can be used in URLs, file names and JSON Web Tokens without further escaping. The encoded data is otherwise identical.

When should I use URL encoding instead of Base64?

URL encoding (percent encoding) makes text safe inside a URL, for example in query parameters, and stays readable. Base64 turns any bytes, including binary files, into plain ASCII text and is used in headers, data URIs and APIs.

How do I convert an image to a data URI?

Choose File to data URI and drop an image or select it with the file picker. The tool shows the MIME type, the size and a preview, and you can copy the complete data:image/…;base64 string for HTML or CSS. Files up to 10 MB are supported.

Is Base64 encryption?

No. Base64 is an encoding that anyone can reverse without a key. Never use it to protect passwords or secrets; use proper encryption or hashing instead.