URL Encoder / Decoder

URL Encoder / Decoder

The URL Encoder & Decoder percent-encodes text so it can travel safely inside URLs, and decodes it back. URLs may only contain a limited set of characters, so spaces, punctuation and non-ASCII must be escaped as %XX sequences.

Why use URL Encoder / Decoder

  • Encode and decode in one place, with auto-handling of errors.
  • Component mode for query values and full-URL mode for whole links.
  • UTF-8 safe for non-ASCII text.
  • Runs entirely in your browser.

How to use URL Encoder / Decoder

  1. 1Pick a direction & mode. Choose Encode or Decode, and Component or Full URL.
  2. 2Enter your text. Paste the URL, query value or encoded string.
  3. 3Copy the result. Copy the encoded or decoded output.

Frequently asked questions

What is the difference between component and full URL?
Component mode (encodeURIComponent) escapes everything including / and ? — use it for query values. Full-URL mode (encodeURI) preserves URL structure.
Why are spaces shown as %20?
Percent-encoding replaces unsafe characters with %XX; a space becomes %20 (or + inside a query string in some contexts).
Is anything uploaded?
No. Encoding and decoding happen entirely in your browser.

Developer notes

Use encodeURIComponent (component mode) for individual query parameters; encodeURI (full mode) preserves the structure of a complete URL. Encoding a value twice double-escapes the percent signs — a common bug.

Copied