Free URL Encoder/Decoder
Characters like spaces, ampersands, and question marks have special meaning in URLs, so they need to be percent-encoded (e.g. a space becomes %20) when they appear as part of a query parameter value rather than as URL structure — this is especially important when passing user-generated text as a URL parameter.
Worked Example
Example: The text hello world & more encodes to hello%20world%20%26%20more.
Formula / Method
Uses the browser's native encodeURIComponent() and decodeURIComponent() — the correct functions for encoding individual query parameter values (as opposed to encodeURI(), which is for encoding a full URL and preserves URL structure characters).
Worked Example
Example: The text hello world & more encodes to hello%20world%20%26%20more.
Formula / Method
Uses the browser's native encodeURIComponent() and decodeURIComponent() — the correct functions for encoding individual query parameter values (as opposed to encodeURI(), which is for encoding a full URL and preserves URL structure characters).