URL Encoder and Decoder
Keep URL components, form values and whole-URL inspection separate so that spaces and plus signs behave as you expect.
Processing stays in your browser. Your text is not uploaded, saved, or used to open a destination.Encode or strictly decode one component, not a whole URL. A literal + stays + when decoding.
Input text
0 / 1,048,576 UTF-8 bytesMaximum 1 MiB UTF-8 input. Text is kept in memory only; refreshing clears it. No input is fetched, opened or uploaded. Whitespace is preserved in encoder modes.
Choose a mode and action to begin.
Output text
How to use the URL encoder and decoder
Encode or decode a URL component
Choose URL component for one piece of a link, such as a search term. Paste it into Input text, then choose Encode to prepare it for a URL or Decode to read percent-encoded text. The result appears in Output text. A plus sign stays a plus sign when decoding in this mode.
Encode or decode a form value
Choose Form value for one form field value, rather than a whole query string. Encode turns spaces into plus signs and a literal plus sign into %2B. Decode turns plus signs back into spaces.
Inspect a complete link
Choose Inspect URL, paste a complete link starting with http:// or https://, then choose Inspect URL. Review its hostname, path and query values below. Repeated names and empty values are kept. The table shows up to 100 pairs; Complete inspection JSON contains them all.
Use the result and try again
Choose Copy output or Download UTF-8 text to save the complete result as url-result.txt. If copying is blocked, select the output and copy it manually. Load example fills the input for the current mode; choose an action to process it. Clear removes the input, and Undo restores the previous input, mode and result after Clear, Load example or Swap.
Swap input/output lets you reuse a conversion result as input. Choose Encode or Decode again to process it. Swap is unavailable for inspection or when the result exceeds the input limit. Changing the input or mode clears old results; Cancel stops processing and keeps your input. Refreshing the page clears drafts and Undo.
Input can contain up to 1 MiB of UTF-8 text. Decoding happens once: %252F becomes %2F. An incomplete or invalid escape, such as %GG, shows an error without changing your input. Correct the text and choose Decode again.
Example: share a search for arts and crafts
Suppose a search term needs to be added to a link. Choose URL component, enter arts & crafts, then choose Encode. The output is arts%20%26%20crafts: the spaces and ampersand can now travel as part of one value.
To read that value again, paste it into Input text and choose Decode. You get arts & crafts back. In Form value mode, the same words encode as arts+%26+crafts, because form values use plus signs for spaces.
To inspect an existing search link, try https://example.com/search?q=arts+%26+crafts in Inspect URL mode. Its query table shows the name q and the value arts & crafts. The tool reads the link locally without visiting it.
About URL encoding
Links use characters such as ?, & and = to separate their parts. Encoding lets a value contain those characters without turning them into separators. You may use it when preparing search terms, form values or links for a website.
Choose the mode that matches where the value will be used. URL component encoding preserves common punctuation such as ! and parentheses. Form value encoding follows browser form rules, including plus signs for spaces. Neither mode is meant to encode a whole link at once.
Inspection uses browser URL parsing, so a hostname or path may be normalized and default ports may disappear. Query values use forgiving form-style decoding; the raw query and fragment remain encoded. Standalone Decode is stricter and rejects malformed escapes or UTF-8.
Only complete HTTP or HTTPS links without usernames or passwords can be inspected. Inspection does not fetch the destination, follow redirects or check whether a link exists or is safe. Processing stays in your browser.
Stars and feedback
Loading…
What should we improve next?
Help shape the next update to URL encoder decoder. Tell us what would make it better for you.
Prefer email? feedback@tooltulip.com
Tool reference #077