Text Value
Encoded (URI) Value
How to use
- Paste your text or URL into Text Value.
- Choose whether to keep new lines and the
/path separators unencoded. - Press Encode to get the percent-encoded value, or paste an encoded value into Uri Value and press Decode.
Frequently asked questions
What is URL encoding?
URL encoding, also called percent-encoding, replaces characters that are not allowed or have a special meaning in a URL with a % sign followed by two hexadecimal digits. For example a space becomes %20 and & becomes %26.
When do I need to URL-encode text?
Whenever you put user text into a URL: query string values, path segments, redirect URLs, API parameters and links in emails. Without encoding, characters such as &, ?, # and spaces break the URL or change its meaning.
Why does a space sometimes appear as + instead of %20?
HTML forms traditionally encode spaces in query strings as +. In paths and in standard percent-encoding a space is %20. This tool uses %20, which is understood everywhere.
Should I keep the “/” unencoded?
Keep slashes when you are encoding a whole path such as folder/file name.txt, so the folders stay separate. Encode them when the text is a single value, for example a query parameter that contains a slash.