Skip to content
TinySolve

Base64 Encoder

Encode text to Base64, including emoji and every alphabet, with a URL-safe option.

Runs in your browser — nothing you type is sent anywhere

Standard Base64. Turn on the URL-safe alphabet if the result will go into a link, since + and / both need escaping there.

Base64

The result appears here as you type. Nothing is sent anywhere — the work happens in this page.

About the Base64 Encoder

Base64 turns arbitrary data into sixty-four characters that survive being sent as plain text. It is not encryption and it hides nothing — anyone can decode it instantly — but it is what lets a token travel in an HTTP header, an image sit inside a CSS file, or an attachment cross an email system that only understands text.

The part that trips people up is not Base64 itself but the encoding underneath it. The browser's built-in function works on bytes and refuses anything above the basic Latin range, so encoding a single accented letter throws an error, and the common workaround produces bytes that other languages decode into something different. This tool converts text to real UTF-8 first, so an emoji or a line of Hindi encodes to exactly what any correct implementation elsewhere would produce.

The URL-safe option swaps the two characters that cause trouble in links. Standard Base64 uses plus and slash, both of which have their own meaning inside a URL and have to be escaped; URL-safe Base64 uses hyphen and underscore instead and drops the trailing padding. If the result is going into a query string, a filename or a JWT, that is the variant you want.

Line wrapping at seventy-six characters is there for the older standards that require it, notably MIME email. Everything runs in the page, so a token or a key you are encoding never leaves your device.

How to use the Base64 Encoder

  1. Paste your text

    Anything at all — plain text, JSON, a key. It is encoded as you type, with no button to press.

  2. Pick the alphabet

    Leave it standard for general use, or switch to URL-safe if the result is going into a link, a filename or a token.

  3. Wrap if you need to

    Turn on line wrapping when the output is destined for an email header or another format that requires 76-character lines.

  4. Copy the result

    Copy it to your clipboard, or download it as a text file if it is long.

Frequently asked questions

Is Base64 a form of encryption?
No, and treating it as one is a genuine security mistake. Base64 is a reversible encoding with no key — anyone can decode it in a second. It exists to make binary data safe to send through systems that only handle text, not to hide anything.
Why do emoji and accented letters break in other Base64 tools?
Because the browser's built-in encoder works on bytes and rejects any character above U+00FF, and the usual workaround produces bytes that decode differently elsewhere. This tool converts to genuine UTF-8 first, so the output matches what a correct encoder in any other language produces.
What is URL-safe Base64?
A variant that replaces plus with hyphen and slash with underscore, and drops the trailing equals padding. Those two characters have their own meaning inside a URL, so standard Base64 has to be escaped before it can be used in one. JWTs use the URL-safe form throughout.
Why is the Base64 longer than what I put in?
Base64 represents three bytes using four characters, so the output is about a third larger. That is the cost of making arbitrary data safe to send as text, and it is why you would not use it for anything where size matters.
Is my text sent to a server?
No. The encoding happens in your browser as you type. That matters here, because the things people Base64-encode are frequently credentials, API keys and tokens.