Complete URL conversion · Updated November 6, 2026
Convert URL Online: Encode or Decode a Complete URL
Paste a complete URL, then convert it without encoding the ://, slashes, question mark, or hash as ordinary text. The tool converts path, query, and fragment data separately so the URL keeps its structure.
What complete-URL conversion changes
| Input | Encoded result | Boundary kept |
|---|---|---|
https://example.com/a path | https://example.com/a%20path | Scheme, host, and path slash remain delimiters. |
https://example.com/?q=a b | https://example.com/?q=a%20b | Question mark remains the query boundary. |
https://example.com/#a b | https://example.com/#a%20b | Hash remains the fragment boundary. |
Why not encode the whole string?
Encoding the complete string as one component turns delimiters into data and changes the URL's meaning. This page treats the URL structure as syntax, then encodes the component text inside each part. Decoding reverses those component operations without inventing a new host or path boundary.
Rerun the evidence
Download the Node regression script, fixtures and recorded results. Run node convert-url-regression.cjs with Node v24.19.0.
For URL syntax diagnostics, use the valid URL checker; for serialization comparisons, use URL format / URL formatter.