Base64 Encoder/Decoder

Developer

Free online Base64 encoder and decoder. Encode any text to Base64 or decode Base64 back to text. Supports Unicode and URL-safe format. Runs in your browser.

URL-safe
Input
Output

How to Use

  1. 1 Choose Encode to convert text to Base64, or Decode to convert Base64 back to text
  2. 2 Paste or type your input into the left area
  3. 3 Click the Encode or Decode button to process
  4. 4 Copy the result from the right area with the Copy button
  5. 5 Toggle URL-safe mode if you need Base64 for use in URLs or filenames

Use Cases

Encode API Tokens

Encode credentials or tokens to Base64 for use in HTTP Authorization headers.

Decode JWT Payloads

Quickly decode the Base64url payload segment of a JWT to inspect its contents.

Embed Data in URLs

Use URL-safe Base64 to safely embed binary or text data in query strings.

Debug Encoded Responses

Decode Base64-encoded data returned by APIs or config files to read the original content.

FAQ

Yes. All encoding and decoding happens entirely in your browser. Your data is never sent to any server.

Yes. Unlike many other tools that fail on non-ASCII characters, this encoder properly handles Unicode by converting text to UTF-8 bytes before encoding.

Standard Base64 uses + and / characters, which have special meaning in URLs. URL-safe Base64 replaces + with - and / with _, making it safe to use in URLs and filenames without percent-encoding.

Base64 is commonly used to encode binary data (images, files) as text for transmission in email, HTTP headers, JSON payloads, and data URIs. It increases data size by about 33% but ensures safe transport over text-based channels.

The encoded data may not be a UTF-8 text string. Base64 can encode any binary data, not just text. If the original was an image or binary file, the decoded output will not be readable text.

Once the page is loaded, the tool works entirely in your browser with no internet connection required.

Related Tools