Encodeur / Décodeur URL
Encodez les caractères spéciaux pour les URLs ou décodez un percent-encoding.
评论与评分
写评论
您的评分 *
了解FileSwiftly如何收集、使用和保护您的个人数据和文件。符合GDPR规定。
0/500 characters
成为第一个发表评论的人!
相关工具
继续使用这些补充工具
Free URL Encoder and Decoder Online — Percent-Encode URLs
Encode special characters in URLs to the standard percent-encoding format (%20, %3F, %26…), or decode encoded URLs back to their readable form. Instant, no account.
What is URL encoding and why is it needed?
URLs can only contain a defined set of safe ASCII characters. Special characters (spaces, accents, symbols like #, &, ?, =) must be encoded as %XX sequences where XX is the hexadecimal value of the character's UTF-8 byte(s). Without encoding, browsers and servers may misinterpret the URL structure. Examples: space = %20, @ = %40, / = %2F, ? = %3F, # = %23, & = %26, = = %3D. Non-ASCII characters (é, ü, 中文) are encoded as multiple %XX sequences representing their UTF-8 bytes.
encodeURI vs encodeURIComponent: which to use
encodeURI: encodes a full URL, preserving the structural characters that form the URL (: // ? # & = /). Use when encoding an entire URL. Example: https://example.com/search?q=hello world → https://example.com/search?q=hello%20world. encodeURIComponent: encodes everything including URL structural characters. Use when encoding a single query parameter value that may contain special characters. Example: encoding a URL as a parameter value: url=https%3A%2F%2Fexample.com%2Fpage.
FAQ
What characters are encoded by percent-encoding?
All characters outside the unreserved set (A-Z, a-z, 0-9, -, _, ., ~) are encoded. Reserved characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =) are encoded when used as data values but not when used as URL structure.
How do I encode a space in a URL?
A space is encoded as %20 in standard percent-encoding, or as + in application/x-www-form-urlencoded format (used in HTML form submissions).
Can I decode multiple URLs at once?
Process one URL at a time in the input field. For batch encoding/decoding, use a programming approach (JavaScript encodeURIComponent, Python urllib.parse.quote).
Why does my encoded URL look different in different tools?
Different tools may use different encoding standards (encodeURI vs encodeURIComponent) or handle certain characters differently. %20 and + are both valid representations of a space in different contexts.
Can I encode Unicode characters (Chinese, Arabic, etc.)?
Yes. Unicode characters are encoded as UTF-8 bytes in percent-encoding. The Chinese character 中 encodes as %E4%B8%AD.
What is the difference between URL encoding and Base64 encoding?
URL encoding converts special characters to %XX sequences, keeping the text human-readable. Base64 encodes any binary data as a string of 64 ASCII characters — used for embedding binary data (images, files) in text contexts, not for URL sanitization.