URL Encoder / Decoder
The URL Encoder / Decoder converts text and URLs to and from RFC 3986 percent-encoded format. Features encodeURIComponent, encodeURI, form-urlencoded modes, automatic multi-layer recursive decoding, and an interactive query parameter inspector table.
📖 RFC 3986 URL Percent-Encoding Reference
Encoding special characters into percent-escaped sequences (e.g., %20 for spaces, %2F for slashes) prevents malformed HTTP requests, broken OAuth redirect loops, and parameter injection. This tool supports strict component encoding, full URI preservation, multi-layer recursive decoding, and a live query parameter editor.
How to use the URL Encoder / Decoder
- Select your desired mode: URL Encoder, URL Decoder, or Query Param Inspector.
- Paste your URL, query string, or plain text into the input box.
- Choose between encodeURIComponent, encodeURI, or Form URL (+ for space) encoding modes.
- Use the Query Inspector tab to view and modify individual parameters and copy the reassembled URL.
Common use cases
- Safely escape query parameters, OAuth callback URLs, and API endpoints.
- Decode nested or multi-layer percent-encoded tracking links (e.g. Google Analytics UTM links).
- Inspect, modify, and add query parameters to lengthy webhooks or API requests.
- Prevent HTTP 400 Bad Request errors caused by unescaped ampersands, colons, or spaces.
Tips
- Use 'encodeURIComponent' for individual query parameter keys and values, but use 'encodeURI' when you want to preserve the protocol and path slashes of a complete URL.
- If a URL has been encoded multiple times (e.g., in nested redirection links), use the 'Unpack All Layers' button to strip recursive percent-encoding in one click.
- The Query Param Inspector parses parameters into an editable table, allowing you to add, tweak, or remove key-value pairs with instant live reassembly.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent? +
encodeURI preserves valid URL structural characters (like ://, ?, &, and /) and only encodes illegal characters. encodeURIComponent encodes all special characters including slashes, ampersands, and colons, making it safe for query parameter values.
Why are spaces sometimes encoded as '%20' and sometimes as '+'? +
'%20' is the standard percent-encoding mandated by RFC 3986 for URIs. The plus sign '+' is used exclusively in HTML form submissions (application/x-www-form-urlencoded). Both are supported by this tool.
Is my URL or private token sent to any server? +
No. All encoding, decoding, and query string manipulation run entirely inside your browser's memory. No URLs or auth tokens are ever transmitted or logged.