DevToolbox

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings. Supports UTF-8 characters.

Common use cases

Base64 encoding is most useful when you need to safely transmit binary or text data through systems designed to handle ASCII.

Encode API credentials

Convert username:password pairs into Base64 for HTTP Basic Authentication headers.

Decode JWT segments

Quickly decode the header or payload portion of a JWT to inspect claims without an external tool.

Embed small assets

Turn small images or fonts into Base64 data URIs for embedding directly in HTML or CSS.

Frequently asked questions

Short answers to the questions people usually have before using the tool.

Does this Base64 tool send my data to a server?+

No. Encoding and decoding happen entirely in your browser using built-in JavaScript functions, so your data never leaves your machine.

Can I encode non-ASCII characters like emoji or CJK?+

Yes. The tool handles full UTF-8 input by converting through encodeURIComponent before calling btoa, so emoji and international characters encode correctly.

What is the difference between Base64 and Base64url?+

Standard Base64 uses + and / as extra characters while Base64url replaces them with - and _ to be safe in URLs. This tool uses standard Base64.

Related tools

Keep moving through related utility tasks without leaving the toolbox.