ToolsKit

Base64 Encoder/Decoder

Encode or decode UTF-8 text as Base64.

Encode or decode UTF-8 text as Base64 for common development, debugging, and data-transformation workflows.

Loading the interactive tool… This page needs JavaScript to run the Base64 Encoder/Decoder.

How to use Base64 Encoder/Decoder

  1. Paste the data, code, token, or value you need to inspect.
  2. Set any format, encoding, or validation options.
  3. Run the tool and inspect the result or diagnostic output.
  4. Copy the output into your terminal, editor, API client, or project.

How Base64 Encoder/Decoder works

Choose encode or decode, then paste text. Encoding converts your text to UTF-8 bytes first and then to standard Base64 with = padding, so accented letters and emoji work correctly. Decoding reverses it and reads the bytes back as UTF-8 text. It uses the standard alphabet with plus and slash, not the URL-safe variant, and invalid Base64 input shows an error. Nothing is sent to a server.

Worked example

Input: Hello, World! in encode mode → Output: SGVsbG8sIFdvcmxkIQ==. Switch to decode and paste that string to get Hello, World! back.

Common uses

  • Check what a Base64 string in an API response or config actually contains.
  • Encode a small snippet to embed in a data URI or an Authorization header test.
  • Decode a value copied from an email header or a log line.

Best for

  • API and HTTP debugging
  • embedded text values
  • development and test data

Tips for better results

  • Base64 is an encoding, not encryption.
  • Do not use Base64 to protect passwords, tokens, or other secrets.
  • Validate the output before using it in production code.
  • Treat tokens, credentials, and secrets as sensitive even when processing happens locally.

Frequently asked questions

Is Base64 encryption?

No. Base64 is only an encoding. Anyone can decode it, so never use it to protect secrets.

Why is Base64 output larger?

Base64 represents every 3 bytes as 4 characters, increasing size by about 33%.

Does it support Unicode text?

Yes, text is encoded as UTF-8 before Base64 encoding.

Related tools

Explore tool categories