Base64 & URL Encoder Decoder

Encode or decode Unicode text and files with Standard or URL-safe Base64 and precise URL encoding modes.

Workspace

Format
Direction
0 characters0 B / 2 MB
0 characters0 B

Choose the right option

Standard Base64 is common in files, email, and data fields. URL-safe Base64, also called Base64url, replaces + and / with - and _.

Padding is optional in many URL-safe uses. Decoding accepts padded or unpadded input but checks the selected alphabet.

Guide

How to use

  1. Choose Base64 or URL encoding, then choose Encode or Decode.
  2. For Base64, select the standard or URL-safe alphabet and optional output padding. Text or files can be encoded.
  3. For URL encoding, choose a component, complete URL, or HTML form value so reserved characters and spaces are handled correctly.
  4. Copy or download the live result, reverse the conversion, or download decoded Base64 bytes.
Help

Frequently asked questions

Does Base64 support Unicode text?

Yes. Text is converted with UTF-8, so accented characters, non-Latin scripts, and emoji can be encoded and decoded.

What is the difference between Standard Base64 and Base64url?

Standard Base64 uses + and /. URL-safe Base64, often called Base64url, uses - and _ so the result fits more easily in URLs and filenames. Padding may be omitted in many Base64url uses.

Which URL encoding style should I choose?

Use Component for one query value, path segment, or text fragment. Use Complete URL to keep separators such as : / ? and & readable. Use Form value when spaces should become +.

Can Base64 represent a file?

Yes. Select a file up to 5 MB to create Base64 text. When decoding, you can download the resulting bytes even when they are not valid UTF-8 text.

Is Base64 encryption?

No. Base64 only changes how data is represented and does not protect passwords or confidential information.