Base64 Encoder

Encode text to Base64.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Type or paste text and get its Base64 encoding. The text is converted to UTF-8 bytes first, so accented characters and emoji encode correctly. Output uses the standard A-Z a-z 0-9 + / alphabet with = padding.

How to use

1
Step 1
Paste the text to encode.
2
Step 2
Press Run.
3
Step 3
Copy the Base64 string.

How it works

Base64 maps every 3 bytes onto 4 printable characters, so the output is about a third larger than the input. This tool encodes the UTF-8 bytes of your text and pads with = to a multiple of four. Base64 is an encoding, not encryption: anyone can decode it.

Worked example

Plain text

Input
Hello, World!
Output
SGVsbG8sIFdvcmxkIQ==
Walkthrough
13 bytes become 20 characters, the last two being = padding. A non-ASCII input such as café ☕ gives Y2Fmw6kg4piV.

Limitations

  • Text only. It does not encode files or images.
  • Output uses + and / and padding. It is not the URL-safe variant, so replace + with -, / with _ and drop = if you need that.
  • Base64 hides nothing, so do not use it to protect secrets.

Questions

How do I encode text to Base64?
Paste the text and press Run. The Base64 string appears in the output box.
Does it handle emoji and accents?
Yes. The text is encoded as UTF-8 first.
Is Base64 encryption?
No. It is a reversible encoding that anyone can decode.
Why does the output end with ==?
That is padding that fills the last 4-character group when the input length is not a multiple of 3.

Features

  • UTF-8 safe
  • Standard alphabet with padding
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • What Is A RESTful API?

    Traversy Media

    URL encoding shows up constantly in query strings and API clients.

    Watch on YouTube
  • TypeScript in 100 Seconds

    Fireship

    Typed JS snippets often get formatted or hashed nearby.

    Watch on YouTube
  • encodeURIComponent()

    MDN

    What browser URL encoding actually does—maps to url-encode tools.

  • web.dev

    Google

    Modern web guidance that pairs with encoding and tooling pages.