Encoding & Decoding

Base64 Encoder and Decoder

Encode and decode Base64 in the browser, with standard and URL-safe variants, automatic direction detection, and optional file-to-Base64 conversion. Useful for API debugging and local data prep.

Base64EncodingDeveloper

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Encode or restore Base64 fields while debugging APIs
  • Convert small images or files to Base64 for embedding
  • Decode Base64 content from configuration files

How to use

  1. Enter text or choose a file
  2. Choose encode or decode, or use auto-detect
  3. Copy the output

Example input and output

Input

hello

Output

aGVsbG8=

FAQ

Can it convert files to Base64?

Yes. Choosing a local file reads it and produces a Base64 string. Reading and conversion stay in the browser.

How does URL-safe Base64 differ from standard Base64?

URL-safe Base64 replaces + and / with - and _ and often omits trailing = padding, which is safer in URLs and filenames.

Tools

Related tools

Continue with another translated tool for a nearby task.

URL Encode/Decode

URL Encoder and Decoder

Available

Percent-encode or decode text with encodeURIComponent or encodeURI. Useful for query values, non-ASCII paths, and API debugging. All processing stays in the browser.

URL Encoding Decoding

JWT Decoder

JWT Decoder - Inspect Header and Payload

Available

Decode a JWT locally to show Header, Payload, and Signature, with algorithm and expiry hints. Useful for auth debugging. The token is not uploaded.

JWT Decode Auth