Skip to content
SecTools

Base64 and URL encoder / decoder

One panel for Base64, base64url and percent-encoding: encode or decode in either direction and watch the byte counts change as you type.

  • Base64, base64url and URL
  • UTF-8 safe round trip
  • Local file encoding
  • Nothing is uploaded

UTF-8 safe, byte counts included

Text becomes UTF-8 bytes before encoding, so accents and emoji survive, and the size comparison shows exactly what the encoding costs.

Direction
Scheme
File to Base64

Encoded output

Input characters
16
Input bytes (UTF-8)
18 B
Output length
24
Size change
33.3%
Base64 adds about a third

Everything is computed from the UTF-8 bytes of your text, so emoji and accented characters survive the round trip.

File to Base64

Choose a file in the panel on the left to turn it into Base64 or a data URL — the bytes never leave the browser.

How it works

Security tools that run in your tab

No uploads, no sign-ups and nothing to wait for: the the crypto runs inside the page itself, so the numbers appear as you type.

  1. 1. Type, paste or drop an input

    A password to generate, text or a file to hash, or a payload to decode. All of it lives in page state, so nothing is sent anywhere.

  2. 2. Shape it the way you want

    Pick the alphabet, the hash algorithm or the encoding, and every result updates as you type.

  3. 3. Get the output instantly

    Entropy, digests and encoded output update on every keystroke: no submit button, no waiting screen.

  4. 4. Check before you trust

    Every result names the algorithm or formula behind it, and the tool says so plainly when an input cannot be decoded.

Privacy by architecture

Nothing is uploaded — and you can verify it

Privacy claims are cheap, so this one is falsifiable: the app has no upload code path at all.

  • No upload endpoint exists

    None of these tools has a POST route, a storage bucket or a proxy. Open DevTools → Network and use them: the only requests are the page assets.

  • Your secrets stay in memory

    Passwords, payloads and file bytes live in React state inside the tab and are never persisted. Close the tab and they are gone — nothing survives, because nothing was stored.

  • Hashes prove integrity, not safety

    A matching checksum means the bytes are identical, not that the file is safe: only a signed digest or a second channel proves authenticity.

Free forever, no account required — the tools are static pages that run entirely on the client.

Base64 and URL FAQ

Base64 versus base64url, why the output grows, data URLs, and why Base64 is not encryption.

What is the difference between Base64 and base64url?

Standard Base64 uses + and / and pads with =, which breaks in URLs and JSON. base64url swaps + for - and / for _ and drops the padding — the form JWT and many APIs use.

Does Base64 encrypt my data?

No, and this is the most common security mistake with it. Base64 is a reversible transport encoding: anyone can decode it in one step. Treat encoded strings exactly as you would the plain text.

Why is the output bigger than the input?

Base64 stores 3 bytes as 4 characters, so it grows by about 33% (plus padding). Percent-encoding can grow a payload much more, because every escaped character becomes three: %20 for a space, for example.

Can it handle emoji and accents?

Yes. Text is converted to UTF-8 bytes before encoding and decoded back afterwards, so café, 日本語 and emoji round-trip correctly — plain btoa would throw on all of them.

What is a data URL and when is it useful?

A data URL is data: plus a MIME type and the Base64 payload, which lets a small image or font travel inside HTML or CSS. Inline a small SVG icon and it saves a request; inline a 4 MB photo and you have made the page slower.

Is percent-encoding the same as Base64?

No. Percent-encoding makes text safe inside a URL by escaping reserved characters, and it keeps the text readable — a space becomes %20. Base64 uses a fixed 64-character alphabet and hides the original text completely.

  • Password generator

    Crypto-random passwords from 4 to 128 characters with uppercase, lowercase, digits, symbols, an ambiguous-character filter and a pronounceable mode — plus real entropy and crack-time maths.

    Open tool
  • Hash generator

    MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for any text or local file, computed with the Web Crypto API, with one-click copy and a compare field to verify a checksum.

    Open tool
  • JWT decoder

    Soon

    Decode a JSON Web Token header and payload, check the expiry and read the claims without sending the token anywhere. In development on the same client-side pipeline.

    In development