Skip to content

Base64 Encode / Decode

Encode text to Base64 or decode it back instantly. Fast, free and no signup.

  • 100% free
  • No Signup
  • Runs in your browser
0 characters
0 characters

How to encode or decode Base64

1Choose mode

Select Encode to create Base64 or Decode to read it.

2Paste your data

Type or paste text. The result updates instantly.

3Copy or download

Copy the output or save it as a text file.

BASE64 GUIDE

Base64 Encoder and Decoder – Encode and Decode Base64 Online

Need a free Base64 encoder and decoder? Convert text to Base64 or decode a Base64 string back to readable text in one click. The tool works in your browser, supports UTF-8 characters, offers a URL-safe option, and lets you encode small files too. No installation and no account needed.

Base64 Encoder

Turn plain text or a file into a Base64 string. It is useful for embedding data in HTML, CSS, JSON, emails and API requests.

Base64 Decoder

Paste a Base64 string and read the original text instantly. Standard and URL-safe Base64 are both detected, and invalid input shows a clear error.

URL-safe Base64

Switch on URL-safe mode to get a string that can be used in URLs, tokens and filenames without extra escaping.

What is Base64?

Base64 is a way of representing binary data using 64 printable characters: letters, numbers, plus and slash. It is commonly used when data has to travel through systems that handle text only, such as email, JSON or HTML attributes.

Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect passwords or sensitive information.

How to encode text to Base64

  1. Select Encode: Make sure the mode is set to Encode.
  2. Enter your text: Type or paste it into the input box.
  3. Choose options: Turn on URL-safe Base64 if you need it.
  4. Copy the result: Use Copy or Download to save the output.

How to decode Base64 to text

Switch the mode to Decode and paste your Base64 string. The decoded text appears immediately. If the string has missing characters or invalid symbols, the tool will tell you that the input is not valid Base64.

Common uses of Base64

  • Data URIs: Embed small images or fonts directly in HTML and CSS.
  • APIs and JSON: Send binary data inside text-based formats.
  • Email attachments: MIME uses Base64 to carry files.
  • Basic authentication headers: Credentials are Base64 encoded, not encrypted.
COMMON QUESTIONS

Frequently Asked Questions About Base64

Quick answers about encoding, decoding and using Base64 safely.

How do I encode text to Base64 online?

Select Encode, paste your text in the input box and the Base64 result appears right away. Copy it or download it as a file.

How do I decode a Base64 string?

Switch to Decode mode and paste your Base64 string. The original text is shown in the result box. Line breaks and spaces in the string are ignored.

Is Base64 the same as encryption?

No. Base64 only changes how data is represented. Anyone can decode it, so it does not protect your data.

What is URL-safe Base64?

URL-safe Base64 replaces plus with a hyphen and slash with an underscore, and removes the equals padding. This makes the string safe for URLs and filenames.

Does the tool support emojis and non-English text?

Yes. Text is processed as UTF-8, so Urdu, Hindi, Arabic, emojis and other special characters encode and decode correctly.

Why does my Base64 string end with equals signs?

The equals signs are padding that makes the string length a multiple of four. URL-safe mode removes them.

Can I encode a file to Base64?

Yes. Use the Select file option in Settings to encode any file up to 5 MB. Larger files may slow down your browser.

Are my text and files uploaded to a server?

No. The conversion runs entirely in your browser, so your data stays on your device.

Need more free tools?

Format, encode and hash data in seconds. Explore everything in one place.

All Tools