bytekit

Base64 Encoder & Decoder

Convert text to Base64 and back instantly. Everything runs in your browser, so your data is never uploaded anywhere.

  • Free
  • No sign-up
  • Runs in your browser

Base64 is an encoding, not encryption: anyone can decode it, so never use it to hide secrets.

What it is for

Base64 rewrites any data using only letters, digits and a few symbols, so it can travel through systems that only accept plain text. This tool converts text to Base64 and Base64 back to text.

  • Read a Base64 value in an API response, an email source or a config file.
  • Build the value for an HTTP Basic authorization header.
  • Embed a small image in HTML or CSS as a data URI.
  • Check the pieces of a JWT, which use the URL-safe form.

How to use it

  1. Choose Encode to turn text into Base64, or Decode to turn Base64 into text.
  2. Paste or type into the input box. The result appears beside it.
  3. Tick URL-safe if the result goes into a web address, a filename or a token.
  4. Copy the result. Swap moves it into the input and flips the mode.

Examples

Encode plain text

You enter

Hello, World!

You get

SGVsbG8sIFdvcmxkIQ==

The = signs at the end are padding that fills out the last group.

Encode text with accents and symbols

You enter

café ☕

You get

Y2Fmw6kg4piV

ByteKit uses UTF-8, so accents, emoji and non-English text come back exactly as they went in.

Standard versus URL-safe

You enter

???>>>

You get

Standard: Pz8/Pj4+ URL-safe: Pz8_Pj4-

URL-safe swaps + and / for - and _, and drops the = padding.

Good to know

  • Emojis and non-English text encode and decode correctly, because ByteKit uses UTF-8.
  • The URL-safe option swaps + and / for - and _ and drops the = padding, the form used in JWTs and web addresses.
  • Base64 is an encoding, not encryption: anyone can decode it, so never use it to hide secrets.
  • Everything is converted on your own device and nothing is uploaded.

Limits and disclaimers

  • Base64 is an encoding, not encryption. Anyone can decode it, so it does not hide anything.
  • It makes data about 33% larger, so it suits small pieces of data and not large files.
  • Decoding fails on text that is not valid Base64, or that does not contain UTF-8 text once decoded (for example a raw image).
  • Do not paste passwords, private keys or other secrets into any online tool, including this one.

ByteKit is provided as is, for convenience. Check any result that matters before you use it in production, and keep passwords, keys and personal data out of any website you do not control.

Questions people ask

Is Base64 a way to keep data secret?

No. Base64 only changes how data looks. Use proper encryption if you need privacy.

Why does my Base64 end with = or ==?

Base64 works in groups of three bytes. Padding fills out the last group when the data does not divide evenly.

Can I encode an image or a file?

This tool works with text. Files need a tool that reads the file's raw bytes.

Guides

Longer reads from the ByteKit blog that go with this tool.