A search query with spaces and an ampersand
- Input
- tea & coffee
- Result
- tea%20%26%20coffee
Encoding the ampersand keeps it inside the search value instead of starting another query parameter.
Make text safe for a URL—or turn percent codes back into readable text. Your result updates as you type.
What do you want to do?
Paste only the value you want to transform.
URL-safe result
Updates instantly—no submit button needed.
Percent-encoding made practical
URLs use characters such as ?, &, =, /, and # as instructions. When one of those characters belongs to the data instead, it must be percent-encoded so a browser or server does not mistake it for a separator. The tool makes that boundary explicit: choose one value for strict component encoding, or a complete URL to preserve its structure.
Select one URL value for a search phrase or path segment, or complete URL when you pasted the entire address.
Paste the readable value and keep the percent signs in the result. Avoid encoding an already encoded value.
Place the result back into the URL, open it, and confirm the receiving page reads the intended value.
These small examples show the exact transformation, including the characters that are easy to overlook.
Encoding the ampersand keeps it inside the search value instead of starting another query parameter.
Each Thai character becomes one or more UTF-8 bytes, and every byte is written as a percent followed by two hexadecimal digits.
Understand the format
Percent-encoding writes a byte as % followed by two hexadecimal digits. ASCII letters and numbers usually remain readable, while spaces, Unicode bytes, and reserved punctuation may be escaped.
The correct boundary matters. Component mode encodes reserved punctuation when it belongs to one value. Complete URL mode preserves structural separators while still encoding spaces and Unicode characters that need safe transport.
Common questions
A literal space is not safe in every URL context, so percent-encoding represents its UTF-8 byte as %20. HTML form encoding sometimes uses a plus sign for a space, but this tool follows encodeURIComponent and returns %20.
Choose “A complete URL” when you need to keep separators such as colon, slash, question mark, and equals sign intact. Choose “One URL value” for a query value, filename, or path segment that may contain those same characters as data.
A percent sign must be followed by two hexadecimal digits, such as %20. An incomplete sequence like %2 or a non-hex sequence like %ZZ is malformed and cannot be decoded reliably.
No. The browser performs the encoding and decoding. Be careful when copying a finished URL into a message or ticket because its query string may still reveal sensitive values.