BaseKit - free, no upload, runs in your browser

Base64 encode and decode, with full UTF-8 support

BaseKit encodes and decodes Base64 with correct UTF-8 handling - so emoji, Chinese text, and accented characters survive the round trip - plus a URL-safe mode that strips the + / = characters for tokens and query parameters. Everything runs in your browser.

The UTF-8 trap most Base64 tools get wrong

Many online Base64 tools convert plain ASCII and silently corrupt anything else. Encode 中文 or an emoji and the round trip comes back as mojibake. BaseKit encodes and decodes with a UTF-8-safe codec, so multibyte text survives intact - the same behavior you get from standard libraries in Node, Python, and Go.

That makes it safe for real payloads: JWT header and payload segments, SAML assertions, small image data URLs, and API keys copied out of logs.

When to use URL-safe Base64

Standard Base64 uses + and /, which are not URL-safe, and = padding that complicates string comparison. URL-safe Base64 swaps in - and _ and drops the padding, which is why JWT segments and many API tokens use it. BaseKit produces both from the same input, so you can compare a token in a query string against a decoded value without transcription errors.

How to encode or decode

Base64 is encoding, not encryption

Base64 turns bytes into a text-safe alphabet so binary data can travel through JSON, email, or a URL. Anyone can decode it with a single command. It adds roughly 33 percent overhead because every three bytes become four characters, and it provides no confidentiality.

Use it when a transport requires text, not when you need to protect a value. Passwords should be hashed with a password algorithm; secrets should be encrypted with a key; tokens should be random and stored hashed. Base64 is a packaging format.

When to choose standard vs URL-safe

Frequently asked questions

Does it handle Chinese text correctly?

Yes. BaseKit uses a UTF-8-safe codec, so 中文, emoji, and accented characters round-trip exactly instead of becoming mojibake.

What is URL-safe Base64?

A variant that replaces + and / with - and _, and drops = padding. It is used by JWTs and API tokens so the string is safe inside URLs and query strings.

Can it encode or decode files?

Text is supported directly. For files, base64 encoding is a separate concern - paste the base64 text and use the decode side to inspect it.

Is my input uploaded?

No. Encoding and decoding run entirely in your browser, which matters because people often base64-decode JWT segments and tokens.

What is the size limit?

Up to 2 MB of text per operation, which is far beyond typical token and payload sizes.

Why does Base64 make my data larger?

Every three input bytes become four output characters, so the encoded size is about 33 percent larger before any transport overhead.

Can I use Base64 for passwords?

No. Base64 is reversible. Use a password hash such as Argon2 or bcrypt, and never store the original password.

Why does my decoded text show question marks?

The decoder expects UTF-8. If the original bytes used another encoding, invalid sequences are replaced. Re-encode from the source with UTF-8 before decoding.

Can I decode a JWT payload?

Yes, but the payload is only encoded, not encrypted. Do not treat decoded claims as verified until you validate the signature on a server.

Does it handle line breaks in Base64?

Most decoders ignore whitespace, but some strict implementations do not. Strip line breaks before sending a value to an API that expects a single string.

Related local tools