Developer Tools

Base64 Encode / Decode

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

Updated June 2026

0 characters · 0 lines

How to use the Base64 Encode / Decode

  1. 1

    Paste your text or Base64

    Drop plain text into the box to encode it, or a Base64 string to decode it.

  2. 2

    Pick Encode or Decode

    Use the Encode tab to convert text to Base64, or the Decode tab to convert it back.

  3. 3

    Copy the result

    Your converted output appears instantly. Hit Copy result to grab it. Nothing is saved.

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.

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.

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

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.

Learn more

Embed this tool

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

Paste this where you want the tool to appear:

<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>