Base64 Encode / Decode

Encode text to Base64 or decode Base64 back to text — instantly and privately.

Updated

0 characters · 0 lines

About

About this tool

Base64 is an encoding scheme that represents binary or text data using a 64-character ASCII alphabet. It is everywhere in modern software: embedding images as data URIs, encoding credentials in HTTP Basic Auth headers, packaging binary payloads inside JSON or XML, and carrying email attachments. Because the output uses only safe printable characters, Base64 lets you move data through systems that were built for plain text.

This tool does both directions. Choose Base64 encode to turn any text into a Base64 string, or Base64 decode to turn a Base64 string back into the original text. The encoder is fully UTF-8 aware, so emoji, accented characters, and non-Latin scripts round-trip correctly — something many naive Base64 converters get wrong.

Developers, QA engineers, and anyone debugging APIs use a Base64 converter constantly. Because this one runs entirely client-side in your browser, your data is never sent to a server, logged, or stored. That makes it safe for tokens, configuration snippets, and other sensitive strings you would rather not paste into a random website.

In practice

Examples

Input

Hello

Output

SGVsbG8=

Encode: UTF-8 text to Base64.

Input

SGVsbG8gV29ybGQ=

Output

Hello World

Decode: Base64 back to readable text.

Input

café ☕

Output

Y2Fmw6kg4piV

Encode: multi-byte UTF-8 (accents and emoji) round-trips correctly.

Who uses it

Common uses

  • Inspecting a JWT payload by decoding its Base64url-encoded segments
  • Encoding a username and password pair for an HTTP Basic Auth header
  • Embedding a small icon or font as a Base64 data URI directly in CSS or HTML
  • Decoding a Base64 blob pulled from a JSON API response or config file
  • Encoding binary or credential strings so they survive a text-only channel like email or YAML
  • Round-tripping emoji or non-Latin text through Base64 without corruption while debugging
FAQ

Frequently asked questions

Is this Base64 converter free?

Yes. It is completely free with no sign-up, no limits, and no watermarks.

Is my data uploaded or stored anywhere?

No. Both encoding and decoding happen locally in your browser using JavaScript. Your data never leaves your device, which makes it safe for tokens and sensitive strings.

What is Base64?

Base64 is an encoding that represents data using 64 ASCII characters. It is used for data URIs, HTTP Basic Auth, embedding binary in JSON or XML, and email attachments — anywhere data needs to travel through text-only channels.

Does it support emoji and unicode?

Yes. The encoder is fully UTF-8 aware, so emoji, accented characters, and non-Latin scripts encode and decode correctly without corruption.

Why does decoding fail on my input?

Decoding only works on valid Base64. If the string is truncated, contains characters outside the Base64 alphabet, or has incorrect padding, the tool reports "Invalid Base64 input" instead of returning garbage.

Guides

Learn more

Share

Embed this tool

Free to use on your own site. It stays fast and private for your visitors.

embed.html
<iframe src="https://hypercho.com/embed/base64" title="Base64 Encode / Decode by Hypercho" width="100%" height="560" style="border:1px solid #d8cec3;border-radius:16px;max-width:720px" loading="lazy"></iframe>
<p style="font:13px sans-serif"><a href="https://hypercho.com/tools/base64" target="_blank" rel="noopener">Base64 Encode / Decode</a> by <a href="https://hypercho.com" target="_blank" rel="noopener">Hypercho</a></p>
Work with Hypercho

Doing this by hand every week?Hand it to an AI employee.

A free tool handles one job at a time. If your team repeats a workflow like this every day, we'll design, build and run an AI employee that owns it.

Book a strategy call