encodeURIComponent encodes all special characters including structural URL characters like / ? # — use it for encoding a single query string value. encodeURI leaves those structural characters intact — use it for encoding a full URL.
Encode and decode URLs and query strings, parse any URL into its components, and look up any HTTP status code — all in one place, entirely in your browser.
URL Encoder/Decoder, URL Parser, or HTTP Status Codes.
Enter raw text, an encoded URL, or any full URL to parse.
Switch between component encoding and full URL encoding.
Copy any result or search the status code reference instantly.
| Character | Encoded | Character | Encoded |
|---|---|---|---|
| Space | %20 | # | %23 |
| ! | %21 | $ | %24 |
| & | %26 | + | %2B |
| , | %2C | / | %2F |
| : | %3A | ; | %3B |
| = | %3D | ? | %3F |
| @ | %40 | [ | %5B |
| ] | %5D | % | %25 |
| Code | Name | Description |
|---|
encodeURIComponent encodes all special characters including structural URL characters like / ? # — use it for encoding a single query string value. encodeURI leaves those structural characters intact — use it for encoding a full URL.
Both are permanent redirects. 301 allows the browser to change the request method (POST to GET), while 308 requires the same method to be used. Use 308 when permanently redirecting POST requests.
401 means not authenticated (the server doesn't know who you are). 403 means not authorised (the server knows who you are but you don't have permission).