MFAYSAL.DEV

Base64 Encoder & Decoder

Paste text or Base64, then choose a direction. Free, private and runs in your browser.

Your details

Direction

Result

How Base64 works

Base64 turns binary data into 64 safe ASCII characters (A–Z, a–z, 0–9, + and /). Every 3 bytes of input become 4 characters, so encoded data is about 33% larger. When the input isn't a multiple of 3 bytes, one or two = signs pad the end.

Base64 is encoding, not encryption. Anyone can decode it, so never use it to hide passwords. It's used for email attachments (MIME), data URLs such as data:image/png;base64,…, HTTP Basic authentication headers and JSON Web Tokens.

UTF-8 and the £ sign

The browser's built-in btoa() fails on characters outside Latin-1, such as emoji. This tool converts text to UTF-8 bytes first, so "£" encodes as wqM= and emoji round-trip correctly. The URL-safe variant (RFC 4648 §5) swaps + and / for - and _, which JWTs and URLs use.

Frequently asked questions

Is Base64 secure?

No. It is a reversible encoding with no key. Anyone can decode it.

Why does my Base64 end in ==?

Padding: the input length wasn't a multiple of 3 bytes.

Can I decode Base64url here?

Yes. The decoder accepts - and _ and missing padding.

0data sent
Instantno server
StandardsRFC-based
Copyone click

How to use the Base64 Encoder & Decoder

  1. Paste the text, number or code.
  2. Choose encode/decode or the target format.
  3. Read the result instantly.
  4. Copy it into your code or terminal.

Why use this Base64 Encoder & Decoder

100% in your browser

Nothing you enter is uploaded or stored.

Instant results

Updates as you type, no waiting.

Mobile friendly

Works on phones, tablets and desktops.

Light & dark mode

Follows your mfaysal.com theme.

Free, no account

No sign-up, no limits, no watermark.

Explained

Formulas, tables and sources on the page.

Base64 Encoder & Decoder: chart and reference data

Base64 output size vs input – 4 characters for every 3 bytes (+33%)
04008001,2001,60001002003006009001,200Input bytes

Base64 characters Input bytes

Source: RFC 4648

Common reserved characters and their encodings
CharacterURL encodedHTML entity
space%20 (or + in forms)  (non-breaking)
&%26&
<%3C&lt;
>%3E&gt;
"%22&quot;
'%27&#39;
£%C2%A3&pound;

Base64 Encoder & Decoder compared with the alternatives

How this free tool compares
OptionSetupPrivacySpeed
This toolNoneLocalInstant
Command line (base64, xxd)TerminalLocalInstant
Random online converterNoneMay log inputVaries

Who uses it in the UK

  • Debugging APIs, URLs and HTML
  • Embedded and electronics work
  • Computer Science GCSE and A-level
  • Inspecting data and encodings

More questions

Is it safe to paste API keys or tokens here?

The conversion runs entirely in your browser, so nothing is sent anywhere. Still, treat secrets carefully and never share decoded tokens in screenshots.

Is encoding the same as encryption?

No. Base64, URL and HTML encoding are reversible by anyone. They make data safe to transport or display, not secret.

Which standard does it follow?

Base64 follows RFC 4648, URL percent-encoding follows RFC 3986 and text is handled as UTF-8, matching modern browsers and servers.

Does it handle large inputs?

Yes, up to what your browser memory allows – typically several megabytes of text without problems.

✨ New: Remove the background from any image free – private, in your browser, transparent PNG.

Related free tools

Browse all 102 free tools →

Note: This free tool runs entirely in your browser. No data is sent or stored. Results are for information only.