Choose what you are encoding
URL percent-encoding represents a byte with a percent sign and two hexadecimal digits. A space commonly becomes %20; the UTF-8 bytes for é become %C3%A9. The correct treatment of symbols depends on whether they are data inside a value or delimiters that separate parts of a URI.
ToolMint offers three styles. Choose the style before converting, because the same input can produce different results. This tool transforms text; it does not check that an address exists, has an allowed scheme, or is safe to open.
| Style | Encode | Decode | Use it for |
|---|---|---|---|
| Component | encodeURIComponent: space → %20, plus → %2B, slash → %2F |
decodeURIComponent: escaped delimiters become literal characters; raw + stays + |
One path segment, query name, query value, or another component value |
| Full URI | encodeURI: preserves URI delimiters such as /, ?, &, = and # |
decodeURI: keeps escapes for reserved URI delimiters, including %2F, %26 and %3F |
Whole URI text whose delimiters already have their intended roles |
| Form value | UTF-8 form-style encoding: space → +, literal plus → %2B |
Raw + becomes a space before percent decoding |
One name or value in application/x-www-form-urlencoded data |
Form value is not a query-string parser. To inspect a complete q=value&tag=value string, use the URL Query Parser. It separates ordered parameter rows, retains repeated keys and lets you edit and rebuild the query. Use Form value here when converting one name or value. For campaign links, use the UTM Builder. To build query parameters in JavaScript, pass raw values to URLSearchParams instead of encoding them first.
Encode a query value or path segment
For the raw value summer sale & clearance+, Component produces summer%20sale%20%26%20clearance%2B. The ampersand and plus are part of the value, rather than separators between parameters.
For one path segment, reports/2026 becomes reports%2F2026. Whether a server accepts an encoded slash depends on its routing rules. Do not encode all slashes in a complete path if they should separate different segments.
Component matches JavaScript's encodeURIComponent. It leaves ASCII letters, digits and - _ . ! ~ * ' ( ) unchanged. It is not a strict RFC 3986 encoder that escapes every character outside the unreserved set, and it is not an encoder for HTML attributes or response headers. Use the receiving format's rules when additional escaping is required.
Convert whole URI text carefully
Full URI encodes the space in https://example.com/hello world?tag=New York while retaining the scheme, slashes, question mark and equals sign. Its result is https://example.com/hello%20world?tag=New%20York.
This style assumes the delimiters already describe the intended structure. If an ampersand is data inside a query value, Full URI leaves it as an ampersand and it may be interpreted as a parameter separator. Build the URL from separate components instead.
Full URI also encodes an existing percent sign: encoding %20 produces %2520. It does not detect or preserve an already encoded value. It does not perform browser URL parsing, hostname conversion, canonical cleanup or scheme validation. Use the Canonical URL Generator for its separate cleanup workflow.
When decoding, Full URI keeps escapes for ; / ? : @ & = + $ , #. For example, https://example.com/a%2Fb?q=x%26y%20z becomes https://example.com/a%2Fb?q=x%26y z. The space is decoded; the encoded slash and ampersand stay escaped. The result is an inspection string, not necessarily an address you should open unchanged.
Understand plus signs and form values
Component decoding of summer+sale%2B produces summer+sale+. Form value decoding produces summer sale+. A raw plus represents a space only in the form convention; %2B represents a literal plus in both styles.
Form value encoding follows the UTF-8 form serializer's character rules. ASCII letters, digits and * - . _ remain unchanged; ~, !, apostrophes and parentheses are escaped. Whitespace is not trimmed. A tab becomes %09, a line feed becomes %0A, and a space becomes +.
Its decoder deliberately rejects malformed percent escapes and invalid UTF-8 instead of applying the forgiving replacement behavior of URLSearchParams. It performs one decoding pass. Do not repeatedly decode until all percent signs disappear: a remaining escape can be intended data.
Unicode, errors and the input limit
Accented text, Arabic, Chinese and emoji are converted through UTF-8. Valid Unicode is preserved without normalization. The tool rejects unpaired UTF-16 surrogates rather than silently replacing them. In a browser textarea, native editing can normalize CRLF line endings to LF before conversion.
Decode requires each percent sign to start a complete hexadecimal %HH pair, and escaped bytes must represent valid UTF-8. Inputs such as %, %2, %GG, %FF, or a truncated multibyte sequence show an error. There is no partial result, and Copy, Download and Swap are disabled until the input is corrected.
The input limit is 256 KiB (262,144 UTF-8 bytes) in either mode, counted before conversion. Encoded output can be larger than the original text. Swapping that output back into the input applies the same limit and can therefore show a size error for a large result. This is a text converter, not a binary-file decoder. Use Base64 Encoder / Decoder for its byte and file workflow, and see URL Encoding vs Base64 to compare the formats.
Copy, Download, Swap and Reset
Copy places the current non-empty result on your clipboard. Download saves that same result as UTF-8 text: url-encoded.txt in Encode mode or url-decoded.txt in Decode mode. It does not download a remote page or follow a pasted link.
Swap places the result in the editor and switches Encode to Decode or Decode to Encode, retaining the selected style. It is a convenience, not a guarantee of an identical round trip: Full URI decoding preserves reserved escapes, and later encoding escapes their percent signs. Reset clears the input and restores Encode with Component selected. Example buttons replace the input, mode and style with their stated sample.
Local processing and limitations
Conversion runs in browser memory. The converter does not fetch pasted URLs, upload the input, or save input and output to browser storage. Its input and result regions are marked for Clarity masking, and its own analytics events contain action, mode, style or preset identifiers rather than entered text. Ordinary site analytics remain subject to the site's consent settings.
Share shares the tool page URL, not the converted text. Copy and Download create copies outside the editor; clearing the editor does not remove a clipboard entry or a saved file.
Percent-encoding is reversible and provides no encryption, signature verification, malware detection or access control. An Encoded or Decoded status means conversion succeeded under the selected rules; it does not certify a URL as safe or reachable.