๐Ÿ”—

URL Encoder / Decoder

Percent-encode text for URLs or decode encoded URLs back to readable text.

๐Ÿ”—Percent-encoding, decoded

URLs can only carry a limited alphabet โ€” spaces, &, ?, #, and every non-English character must travel as percent-encoded sequences like %20. This tool converts both directions instantly and locally: encode a parameter value before pasting it into a link, or decode a scary-looking tracking URL to see what it actually says.

๐ŸงฎHow percent-encoding works

character โ†’ UTF-8 bytes โ†’ %XX per byte (space โ†’ %20, โ‚น โ†’ %E2%82%B9)

Each unsafe character becomes its UTF-8 bytes written as hexadecimal with a % prefix. That's why one Hindi character can become nine encoded characters โ€” three bytes, three %XX groups.

marks & grades? โ†’ marks%20%26%20grades%3Fโ€” the & and ? must be encoded or they'd be read as URL syntax instead of data.

๐Ÿ’กWhen to encode (and when not to)

  • Encode VALUES, not whole URLs โ€” encoding the entire address breaks the :// and / structure.
  • Always encode user input placed into query parameters; a stray & silently truncates your data.
  • Decode suspicious links before clicking โ€” %-soup often hides redirects and trackers.
  • + means space only in old-style form data; %20 is the safe universal spelling.

๐Ÿ’ก Frequently Asked Questions

What is URL encoding?+

Percent-encoding: unsafe characters are replaced by % followed by their UTF-8 bytes in hex โ€” space becomes %20, & becomes %26. It keeps data from being confused with URL syntax.

Should I encode the whole URL or just parts?+

Just the parts that carry data โ€” usually query-parameter values. Encoding a complete URL turns its own structure (:// ? & =) into data and breaks the link.

Why do I see %20 instead of spaces?+

URLs cannot contain literal spaces, so they're carried as %20. Browsers decode them for display, which is why the address bar often looks cleaner than the underlying link.

What's the difference between %20 and + for spaces?+

%20 is the universal percent-encoding; + means space only inside application/x-www-form-urlencoded form submissions. When in doubt, %20 is always safe.

Does this work with Hindi and emojis?+

Yes โ€” characters are encoded via their UTF-8 bytes, so any script round-trips correctly. One emoji typically becomes 4 bytes = four %XX groups.

๐Ÿ”— Related Tools