Utility Hub

Base64 Encoder

Convert text, JSON, or code into Base64 instantly — free, unlimited, in your browser.

Frequently asked questions

Is my text uploaded anywhere?
No. Encoding happens entirely in your browser using the Web Crypto/Encoding APIs — nothing is sent to a server.
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it back to the original text. Don't use it to protect sensitive data.
Why is the output longer than my input?
Base64 represents every 3 bytes of input as 4 output characters, so encoded text is roughly 33% larger than the original — shown as Encoding Overhead below the result.
Does this handle Unicode text correctly?
Yes — text is encoded as UTF-8 bytes before Base64 conversion, so accented characters, emoji, and non-Latin scripts round-trip correctly when decoded.

You might also need

What is the Base64 Encoder?

The Base64 Encoder converts plain text, JSON, XML, code snippets, or configuration data into Base64 — a text-safe encoding used for embedding binary-ish data in places that only accept ASCII, like JSON fields, URLs, HTTP headers, and config files. Everything runs client-side, so nothing you paste ever leaves your browser.

Use cases

  • Embedding a JSON payload or image data inside another JSON document or config file
  • Preparing a Basic Auth header value (username:password) for an HTTP request
  • Encoding a JWT payload segment for inspection or manual construction
  • Converting a config file or manifest into a text-safe format for environment variables or CI pipelines

How to use the Base64 Encoder

  1. 1

    Paste your text

    Paste or type any text into the input panel — plain text, JSON, XML, or code.

  2. 2

    Encode

    Click Encode to Base64 (or press Ctrl/Cmd+Enter) to convert it.

  3. 3

    Copy or download

    Use Copy to grab the result, or Download to save it as a text file.

Examples

Plain text

hello
aGVsbG8=

JSON payload

{"id":1,"name":"Ada"}
eyJpZCI6MSwibmFtZSI6IkFkYSJ9

We use cookies for analytics and ads. Choose whether to allow them.