Converters · Free online tool

Base64 Encoder / Decoder

Encode and decode Base64 safely with Unicode text, URL-safe output, wrapping, and local-only conversion.

Quick answer: Paste text or Base64, choose Encode or Decode, and press Convert. Unicode-safe and URL-safe modes prevent common character and transport issues.
Advertisement

How this base64 tool helps

This Base64 encoder and decoder handles ordinary text, Unicode characters, and URL-safe variants without sending data to a server. It is useful for inspecting encoded configuration values, HTTP headers, basic data URIs, test payloads, and tokens that use Base64Url encoding. The tool avoids the common browser atob failure with non-ASCII text by performing a UTF-8-safe conversion. You can enable URL-safe output, wrap encoded text at 76 characters for MIME-style use, and see clear errors when input is not valid Base64. Copy, download, example, and recent-history controls make repeat work fast. Base64 is encoding rather than encryption, so the page also explains that encoded data can be decoded by anyone and should not be used to protect secrets. All processing happens in JavaScript on your device.

Last updated: . All processing happens locally; no tool input is sent to a server.

Real-world examples

Inspect a data value

Decode a Base64 field from a configuration file or HTTP header.

Prepare a test payload

Encode a Unicode string and copy the result into an API fixture.

Use a URL-safe variant

Convert standard Base64 characters for use in paths or query strings.

Frequently asked questions

Is Base64 encryption?

No. Base64 is reversible encoding, not encryption. Do not use it to protect passwords, tokens, or confidential data.

What is URL-safe Base64?

Base64Url replaces + with -, / with _, and often omits padding so the value is safer in URLs and filenames.

Why did decoding fail?

The input may contain unsupported characters, missing padding, whitespace, or text that was never Base64 encoded.

Can it decode Unicode?

Yes. The decoder converts Base64 bytes back to UTF-8 text, so multilingual content is supported.