Base64 Converter

Encode text to Base64 or decode Base64 strings instantly.

Share:

Encode and decode Base64 online

Base64 is a binary-to-text encoding that represents any data using 64 safe ASCII characters, so it can travel through channels built for plain text — email bodies, JSON payloads, HTML data URIs, and HTTP headers. This free Base64 converter encodes text to Base64 and decodes Base64 back to readable text in one place, with a live output box and a one-click Copy Output button.

How to use the Base64 encoder and decoder

  1. Paste your text or an existing Base64 string into the Input box.
  2. Click Encode to Base64 to convert plain text into a Base64 string.
  3. Or click Decode from Base64 to turn a Base64 string back into readable text.
  4. Use Copy Output to grab the result. If the input is not valid Base64, the tool shows an error instead of a broken result.

Worked example: encode and decode a login string

Suppose an API expects HTTP Basic authentication with the username admin and the password s3cret. The header value is the Base64 of admin:s3cret.

  1. Paste admin:s3cret into the Input box and click Encode to Base64.
  2. The output is YWRtaW46czNjcmV0, so the header reads Authorization: Basic YWRtaW46czNjcmV0.
  3. To go back, paste YWRtaW46czNjcmV0 and click Decode from Base64. You get admin:s3cret again, which shows why Base64 is encoding, not encryption.

Non-English text works too: नमस्ते encodes to 4KSo4KSu4KS44KWN4KSk4KWH and decodes back unchanged.

Common uses for a Base64 converter

  • Reading or building data: URIs for inline images, fonts, and other embedded assets.
  • Inspecting Base64 values found in config files, API responses, and environment variables.
  • Encoding small blobs so they survive systems that only accept text.
  • Decoding Basic Authentication headers and other Base64-wrapped credentials while debugging.

Everything runs in your browser

All encoding and decoding happens locally in your browser using native JavaScript — your text is never uploaded, logged, or stored on our servers. That makes it safe for sensitive strings you would rather not paste into a random online service. Note that Base64 is encoding, not encryption: anyone can decode it, so it is not a way to protect secrets.

Working with the parts of a token or URL-encoded data? A JSON Web Token is just Base64url segments — inspect one with our JWT decoder — and for percent-encoded query strings use the URL encoder and decoder.

Need a custom tool or internal developer utility built for your team? Get in touch with SR Infobiz.

Frequently Asked Questions

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 printable ASCII characters. It is commonly used to transfer binary data over text-based protocols such as email or HTTP.

How do I encode text to Base64?

Paste your text into the input field and click "Encode to Base64". The tool will instantly convert your text to a Base64-encoded string.

How do I decode a Base64 string?

Paste your Base64 string into the input field and click "Decode from Base64". The tool will convert it back to plain text. If the input is not valid Base64, an error message will be shown.

Is this Base64 tool free?

Yes, our Base64 encoder and decoder is completely free to use with no registration required. All processing happens in your browser — your data never leaves your device.

Does Base64 encrypt my data?

No. Anyone can decode Base64, so do not use it to protect passwords or secrets. It only makes data safe to send through text-only channels.

Why do I get "Invalid Base64 string"?

The input contains characters outside the Base64 alphabet. A common cause is Base64URL, which uses - and _ instead of + and /. Replace - with + and _ with / and try again. Line breaks and spaces are ignored, and missing = padding is accepted.

Does it handle non-English text and emoji?

Yes. Text is converted as UTF-8 before encoding, and decoded the same way, so accented letters, Hindi and emoji round-trip correctly.

SR Infobiz services

Need something built or looked after?

We build websites, run them in the cloud, and add AI chatbots and automation. See what we offer, or tell us what you need.

You may also like

From the blog

All articles →

Mercury 3 and Nemotron 3.5: Fast, Cheap AI Models Explained

Inception's Mercury 3 writes text by diffusion at 1,000+ tokens a second, and Nvidia's Nemotron 3.5 is open-weight and runs on your own PC. Here is what each do...

Grok 4.7: What Actually Changed

xAI's Grok 4.7 keeps Grok 4.6's $2 / $6 price but brings a bigger base model, a 500K context window, and big jumps in agent coding. Here is what actually change...

Claude Opus 5.5: What Actually Changed

Anthropic’s Claude Opus 5.5 claims Fable-level work at ~40% less cost than Opus 5. Here is what actually changed for coding agents, price, safety routing, Copil...