Utility Tools logo

UtilityBox – Free Online Utility Tools

Smart tools for daily tasks — no sign-up needed

Encoder / Decoder

Encode and decode Base64 and URL values.

Base64 Encode & Decode Online — URL & HTML Entity Encoder

UtilityBox's Base64 encoder decoder is a free, browser-local tool for three text encodings: Base64, URL (percent) encoding and HTML entities. Pick a format from the Format menu, type or paste text into Input, then click Encode or Decode — the result appears in Output, ready to copy. Base64 is UTF-8 safe, so emoji, accented letters and scripts such as Hindi survive a round trip, and the decoder also accepts Base64url (JWT-style) input with missing padding. Use the ⇅ button to move a result back into the input for a quick round trip. There is no sign-up, and your text never leaves your device.

How to Use the Base64 Encoder Decoder

  1. Choose Base64, URL Encoding or HTML Entities from the Format dropdown.
  2. Type or paste your text into the Input box — the character counter updates as you type.
  3. Click Encode to encode the input, or Decode to turn encoded text back into plain text.
  4. Read the result in the Output box and click Copy to copy it to your clipboard.
  5. To decode a result you just encoded, click the ⇅ swap button to move Output into Input, then click Decode. Clear empties both boxes.

Key Features

  • Base64 encode and decode — UTF-8 safe; decoding also accepts Base64url characters (- and _), line breaks and missing = padding.
  • URL percent-encoding — encodes with the browser's encodeURIComponent; decoding also treats + as a space, as in query strings.
  • HTML entities — encoding escapes &, <, >, " and '; decoding turns any named or numeric entity back into text.
  • Swap and Clear — ⇅ moves the output into the input; Clear empties both boxes.
  • Helpful errors — invalid Base64 or URL-encoded input is reported instead of producing garbled output.
  • One-click Copy — copy the output without selecting text manually.
  • 100% browser-local — no server round-trips, no account, works in modern desktop and mobile browsers.

Common Use Cases

  • Decoding JWT payloads: Paste the middle segment of a JSON Web Token, choose Base64 and click Decode to read claims such as sub, exp and iat. The decoder accepts the Base64url alphabet and missing padding that JWTs use. It only decodes — it does not verify signatures.
  • Building and debugging URL query strings: Encode parameter values that contain spaces, ampersands or non-ASCII characters before adding them to a URL, or decode percent-encoded values copied from server logs and redirects to read them as plain text.
  • Escaping text for HTML: Convert &, <, >, " and ' into entities so code snippets or user text display as text rather than being parsed as markup — handy for checking what your own escaping code should output.
  • Carrying text inside JSON, email or data URIs: Base64-encode text such as SVG markup, config strings or credentials for a Basic auth header, and decode Base64 strings you find in API responses.

Frequently Asked Questions

What is a Base64 encoder decoder?

It converts text into Base64 — an ASCII string made of A–Z, a–z, 0–9, + and / — and back again. Base64 makes data safe to carry in text-only places such as JSON, email or HTML data URIs. This tool works on text you type or paste (not file uploads) and runs entirely in your browser, so nothing is sent to a server.

How does URL encoding and decoding work?

URL (percent) encoding replaces characters that are not safe in a URL with % and two hex digits — a space becomes %20 and & becomes %26. This tool encodes with the browser's encodeURIComponent and decodes with decodeURIComponent, treating + as a space the way query strings do.

Is it safe to encode sensitive data here?

Yes. Encoding and decoding run locally in your browser (TextEncoder with btoa/atob for Base64, encodeURIComponent for URLs). Nothing is uploaded, stored or logged. Remember that Base64 is an encoding, not encryption — anyone can decode it.

Can I use this as a JWT decoder?

Yes, for reading the claims. Copy the middle segment of the token (the payload between the two dots), select Base64 in the Format menu, paste it into Input and click Decode. The decoder accepts Base64url characters (- and _) and missing padding, so you see the JSON claims such as sub, exp and iat. It does not verify the token's signature.

What does the HTML entity encoder do?

Encoding replaces the five characters that have special meaning in HTML — &, <, >, " and ' — with &amp;, &lt;, &gt;, &quot; and &#39;, so the text is displayed literally instead of being parsed as markup. Decoding converts any named or numeric entity, such as &copy; or &#8364;, back into its character.

What is the difference between Base64 and percent encoding?

Base64 re-encodes all of the data into a 64-character alphabet and makes it about 33% larger; it is used for data URIs, email and API payloads. Percent encoding only escapes individual unsafe characters with % and two hex digits, so the rest of a URL stays readable. Use Base64 to carry data inside text, and URL encoding to build safe query strings.

Does the Base64 encoder support UTF-8 and emoji?

Yes. Text is converted to UTF-8 bytes before Base64 encoding, and the decoder rebuilds the UTF-8 string, so accented letters, Hindi, CJK characters and emoji round-trip without corruption. If decoded bytes are not valid UTF-8 text, the tool shows an error instead of garbled characters.

Why does Decode say my input is not valid?

Decode works on the Input box. A common slip is pressing Decode on the original plain text instead of the encoded result: click ⇅ to move the Output into the Input, then click Decode. Also check that the Format menu matches how your text was encoded.

Do I need to sign up or install anything?

No. The encoder decoder is free, needs no account, extension or download, and works in modern browsers such as Chrome, Firefox, Safari and Edge on desktop and mobile.