URL Encoder/Decoder

Encode, decode and parse URLs with a built-in query parameter editor.

Runs in your browser No sign-up Free forever
Input
Result

What is URL encoding?

URL encoding (also called percent-encoding) replaces characters that aren't safe to use in a URL with a % followed by two hexadecimal digits. For example, a space becomes %20, an ampersand becomes %26, and a question mark becomes %3F. This keeps URLs unambiguous when they contain query strings, paths, or fragments with special characters.

This tool offers

  • Encode arbitrary text for safe use in URLs.
  • Decode percent-encoded strings back to their original form.
  • Auto-detect based on the content of your paste.
  • Parse a full URL into its parts — protocol, host, port, path, query, fragment.
  • Query parameter table for inspecting each key/value pair.

encodeURI vs encodeURIComponent

JavaScript provides two encoders. encodeURIComponent escapes every reserved character — use it for individual query values. encodeURI preserves characters like :/?#[]@!$&'()*+,;= — use it for an already-built URL. The recommended toggle above uses encodeURIComponent.