FREE TOOLS. ZERO LIMITS.
No Signup RequiredNo Watermarks
ToolzNova · Text & developer tools

Base64 Encoder Decoder Online

Encode text to Base64 or decode Base64 back to readable text. Supports UTF-8, so accents, non-Latin scripts and emoji survive the round trip.

Base64 Encoder Decoder

Free base64 encoder decoder that runs in your browser. Nothing is uploaded.

Encode · Decode

Base64 is an encoding, not encryption. Anyone can decode it.

How to use the base64 encoder decoder

1Paste text or Base64

Add plain text to encode, or a Base64 string to decode.

2Choose the mode

Select Encode to Base64 or Decode Base64.

3Copy the result

The result updates as you type. Press Copy Result.

What Base64 output looks like

Base64 turns any data into 64 safe characters: A–Z, a–z, 0–9, + and /, with = used as padding at the end.

The encoded text is about a third longer than the original, because every 3 bytes become 4 characters.

InputBase64
helloaGVsbG8=
ToolzNovaVG9vbHpOb3Zh
caféY2Fmw6k=
👍8J+Riw==

Base64 explained simply

This short guide explains what the base64 encoder decoder does, how to get the best result and when another tool is a better fit.

What Base64 is for

Some systems were designed to carry only plain text, such as email and parts of web pages. Base64 lets you send any data, including symbols, non-Latin text or even images, through those systems safely by converting it into ordinary letters and numbers. You see it in email attachments, data URLs in web pages, API tokens and configuration files.

Base64 Encoder Decoder – Text to Base64
How the base64 encoder decoder works: Text in, Base64 out.

Developers often need to decode a Base64 value quickly to see what is inside, or encode a small piece of text for a header or config setting.

UTF-8 support matters

Simple Base64 tools in browsers break on characters outside basic English, such as é, ü, Arabic, Urdu or emoji. This tool first converts your text to UTF-8 bytes, then encodes those, which is the standard way. Decoding reverses the process, so ‘café’ or ‘مرحبا’ comes back exactly as it went in.

If a decoded result looks garbled, the original data may not have been UTF-8 text; it could be an image or other binary file.

A worked example

A developer finds this in an API config: ‘dXNlcjpwYXNzd29yZA==’. Pasting it and choosing Decode shows ‘user:password’, a basic authentication header. That instantly explains why a login is failing: the password stored in the config is out of date. Encoding the corrected value gives the new string to paste back in.

It is also a reminder that Base64 hides nothing: anyone with the string can read the password.

Base64 in web development

Web developers use Base64 for small images and icons embedded directly in HTML or CSS as data URLs, such as ‘data:image/png;base64,…’. That saves a separate download for tiny files, but makes larger images about a third bigger, so it is best kept for icons under a few kilobytes. JSON Web Tokens (JWTs) use a URL-safe Base64 variant for their header and payload, which is why you can decode the middle part of a token to read its contents.

When debugging, decoding a token or header here is often quicker than writing a script, and nothing is sent to a server.

Base64 is not encryption

Base64 makes data safe to transport, not safe from prying eyes. Never rely on it to protect passwords, keys or personal data; use proper encryption and secure storage instead. For images, the Base64 to Image Converter turns a data string back into a picture, and URL-safe Base64 variants replace + and / with - and _.

  • Encoding: makes data text-safe
  • Not encryption: anyone can decode
  • About 33% larger than the original

Further reading: RFC 4648, the Base64 standard. It explains the format behind this base64 encoder decoder in more detail.

Where you’ll meet Base64

APIs

Basic auth headers and tokens.

Email

Attachments are Base64 encoded.

Web pages

Images embedded as data URLs.

Config files

Secrets and certificates stored as text.

Quick fixes

“The string to be decoded is not correctly encoded”

The input isn’t valid Base64. Check for missing characters or extra spaces.

Decoded text looks garbled

The data is probably binary, such as an image. Try Base64 to Image.

URL-safe Base64 won’t decode

Replace - with + and _ with /, then add = padding if needed.

Copy button does nothing

Clipboard access was blocked. Select the result and copy it.

Frequently asked questions

Is Base64 encryption?

No. It is an encoding that anyone can decode.

Does it support emoji and accents?

Yes, text is encoded as UTF-8.

Is my data uploaded?

No. The base64 encoder decoder works entirely in your browser, so your file stays on your device.

Why is the output longer?

Base64 is about 33% larger than the original data.

What does = at the end mean?

It is padding to make the length a multiple of 4.

Can it decode images?

Use the Base64 to Image Converter for that.

Does it support URL-safe Base64?

Convert - to + and _ to / first.

Why do I get an error when decoding?

The input isn’t valid Base64, often due to missing characters.

Can I encode files?

This tool encodes text only.

Is it safe for passwords?

No, Base64 doesn’t protect data.