Skip to main content
ToolsBay

Runs in your browser — nothing is uploaded · verify

Base64 Encoder & Decoder — free, and it runs in your browser

Encode text to Base64 or decode it back, with full Unicode support.

  • Encode text to Base64 and decode it back, in the same place.
  • Full Unicode support — emoji, accents and non-Latin scripts all round-trip.
  • Handles the URL-safe variant, which is what JWTs and query parameters use.

Plain text

Tab indents · Esc then Tab to leave1 line

Base64

1 line
  • 70 tools

    Free, with no account and no watermark

  • 0 bytes

    Of your files or text uploaded — this tool runs in the tab

  • No queue

    The work happens in this tab, not in a line behind other users

Three steps, nothing to install

Base64 Encoder & Decoder in three steps

  1. TEXT123456Paste it in — it never leaves the tab

    Paste your text or Base64

    Either direction. Nothing is transmitted, so an encoded credential out of a config file can be inspected here without leaving your machine.

  2. TEXTBASE64Converted on your own device

    Encode or decode

    The result appears immediately. Text is encoded as UTF-8 first, which is the step that naive implementations skip.

  3. Copy BASE64

    Copy the result

    Straight to the clipboard, ready for a header, a config value or a data URI.

Why use Base64 Encoder & Decoder

  • Unicode that survives the trip

    The browser’s btoa only accepts Latin-1, so anything above U+00FF throws or corrupts. Text is encoded as UTF-8 bytes first, which is why emoji come back intact.

  • Base64 is not encryption

    It is an encoding — trivially reversible by anyone. The page says so, because treating it as a secret is a genuinely common and costly mistake.

  • Your text stays in the page

    What you paste is not transmitted or stored, so an API response full of customer records, a token or an internal query never leaves your machine.

Frequently asked questions

Yes. Text is encoded as UTF-8 first. The browser's built-in btoa() throws on any character above U+00FF, which is why many simple encoders fail on "café" — this one does not.

What Base64 is for

Base64 encodes arbitrary binary data using only 64 characters that survive being passed through systems built for text. Email attachments, data URIs in CSS, JSON Web Token segments and HTTP basic auth headers all rely on it.

It is worth being blunt about what it is not: Base64 provides no security whatsoever. There is no key, and decoding is a single function call. Credentials sent as Base64 in an HTTP header are transmitted in effectively plain text, which is exactly why basic auth requires HTTPS.

UTF-8 and the btoa problem

The browser's built-in btoa() only accepts characters in the Latin-1 range. Feed it café and it throws an InvalidCharacterError. The fix is to encode the text to UTF-8 bytes first and Base64 those bytes — which is what this tool does, so any text works, including emoji and non-Latin scripts.

Related tools

To encode an image file as a data URI for inlining in CSS or HTML, use the image to Base64 converter. To inspect a JSON Web Token — which is three Base64url segments — use the JWT decoder. For irreversible hashing, use the hash generator.

  • Image to Base64

    Encode an image as a Base64 data URI you can paste into CSS or HTML.

  • URL Encoder & Decoder

    Percent-encode or decode URLs and query string values.

  • JWT Decoder

    Decode a JSON Web Token to inspect its header, payload and expiry.

  • HTML Entity Encoder

    Escape characters to HTML entities, or decode entities back to text.

  • Hash Generator

    Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests of any text.

Related guides

More tools

70 tools, none of which want your file

Everything this tool does happens in the page you are looking at. No account, no upload, no watermark.