Boneyard Tools

URL Encoder and Decoder

Paste text to percent-encode it for a URL, escape a full link while keeping its structure, or decode an encoded string back to plain text. Everything runs in your browser.

How to encode or decode a URL

  1. Paste your text or URL into the box.
  2. Pick a mode: Component, Full URL or Decode.
  3. Copy the encoded or decoded result.

Examples

Encode a query value

name=Ada Lovelace&dept=R&D
name%3DAda%20Lovelace%26dept%3DR%26D

Decode an encoded value

caf%C3%A9%20%26%20cr%C3%A8me
café & crème

Frequently asked questions

What is the difference between Component and Full URL?

Component uses encodeURIComponent and escapes reserved characters like / ? : & = so a value is safe inside a query string. Full URL uses encodeURI and leaves those structural characters intact so a whole link still works.

When should I use Component mode?

Use Component for a single piece of data going into a URL, such as a query parameter value, a path segment or a form field, where every reserved character must be escaped.

Why does decoding fail with an error?

Decoding throws when the input contains a malformed percent escape, for example a stray % or an incomplete byte sequence like %E0%A4%A. Fix or remove the broken escape and try again.

Does a space become %20 or a plus sign?

This tool produces %20 for spaces, which is correct for paths and is also accepted in query strings. The plus sign is only used by the older application/x-www-form-urlencoded form encoding.

Is my text private?

Yes. All encoding and decoding happens locally in your browser and nothing is uploaded.

Related tools