What is the difference between URL encoding and decoding?
Encoding converts text and special characters to percent-encoded form. Decoding restores the readable text.
Encode and decode URLs with Chinese, spaces, and special characters. Convert text to percent-encoded UTF-8, preview results, and copy the output instantly.
Encode or decode URL text instantly
URL encoding converts characters that may be unsafe or ambiguous in a URL into percent-encoded bytes. Decoding reverses the conversion so the original text can be read. It helps browsers, servers, and APIs interpret URL components consistently.
Use this tool for text that will be placed inside a URL path segment or query parameter. For example, encoding name=Sam & city=Shanghai produces name%3DSam%20%26%20city%3DShanghai. In most cases, encode parameter values rather than encoding the complete URL.
Percent encoding only changes how text is represented. It does not hide or protect data. Do not use URL encoding to protect passwords, tokens, or other sensitive information. Avoid encoding the same text more than once, since a percent sign can become %25 and make the value difficult to interpret.
URL encoding handles characters in URL components. Base64 represents binary data as text. They solve different problems, and neither one encrypts data.
Encoding converts text and special characters to percent-encoded form. Decoding restores the readable text.
The input may contain an incomplete percent sequence, such as a % sign without two hexadecimal digits, or an invalid byte sequence.
Usually, encode only a path segment or query parameter value. Encoding the entire URL can make it unusable.
No. URL encoding is a reversible format conversion and must not be used to protect sensitive information.