Encoding

URL Encoder / Decoder

Percent-encode or decode a URL, query string or individual URL component, with UTF-8 handled correctly, instantly in your browser. No upload, no signup.

LogShare URL Encoder / Decoder Runs in your browser · nothing is uploaded

Loading tool…

About the URL Encoder / Decoder

URL encoding replaces unsafe or reserved characters (spaces, &, =, ?, non-ASCII text) with %-escaped byte sequences so they can travel safely inside a URL. This tool encodes and decodes both directions locally.

How to use the URL Encoder / Decoder

  1. Choose Encode or Decode.
  2. Paste text, a query string, or a full URL.
  3. The result updates as you type.
  4. Copy the output with one click.

Step-by-step walkthrough with examples and the errors people hit: URL Encoding Explained: Encode and Decode.

Example

Encode

hello world & more
hello%20world%20%26%20more

Decode

a%3Db%26c%3Dd
a=b&c=d

Common errors and how to fix them

Space became + instead of %20

Form submissions (application/x-www-form-urlencoded) use + for spaces; everywhere else in a URL, %20 is correct. Most servers accept both in query strings.

My URL was double-encoded

Encoding an already encoded value turns % into %25. Encode each component exactly once, at the point where you build the URL.

More problems and fixes in the tutorial

FAQ

What’s the difference between encoding a component vs. a whole URL?

This tool encodes a single component (like encodeURIComponent) — it escapes &, =, and / too, which is what you want for a query parameter value, but not for a full URL where those characters are structural.

Does it support non-ASCII characters?

Yes, multi-byte UTF-8 text (emoji, accented letters, non-Latin scripts) is percent-encoded correctly.