URL Encoder & Decoder
Safely encode URLs, query parameters, and non-ASCII characters into RFC 3986 percent-encoding (%20) and decode encoded URIs back to readable text.
Calculation Breakdown
Understanding URL Percent-Encoding
Uniform Resource Identifiers (URIs) only permit a restricted subset of the US-ASCII character set. Characters outside this set (such as spaces, ampersands, quotation marks, and non-Latin scripts) must be converted into percent-encoding (also known as URL encoding) per RFC 3986.
Percent-encoding replaces unsafe characters with a percent sign (%) followed by two hexadecimal digits representing the UTF-8 byte value. For instance, a space becomes %20, an exclamation mark becomes %21, and an ampersand becomes %26.
This tool is essential for web developers, API engineers, and SEO specialists needing to sanitize URL query strings, debug redirect URLs, or inspect encoded web requests.
How to Use This Tool
- Paste the raw URL, query parameter, or text string into the input box.
- Select URL Encode to replace reserved and non-ASCII characters with percent signs and hex bytes.
- Select URL Decode to translate percent-encoded sequences back to readable text.
- Copy the sanitized or decoded URL ready for web requests or configuration files.
URL Encoding Examples
Query String Parameter Encoding
Encoding a search term containing spaces and special characters.
Decoding an Encoded URL Path
Reversing percent-encoded directory paths into clean text.
RFC 3986 vs form-urlencoded Differences
- Encodes characters per modern RFC 3986 specifications (%20 for spaces rather than legacy application/x-www-form-urlencoded plus signs).
- Unreserved characters (A–Z, a–z, 0–9, -, _, ., ~) are preserved without unnecessary encoding.
Frequently Asked Questions
What is URL encoding?
Why does a space become %20 in URLs?
What is the difference between %20 and + for spaces?
Which characters are considered safe in a URL?
Related Tools
Escape special characters into named, decimal, or hex HTML entities and decode back.
Encode text, Unicode strings, and binary data into RFC 4648 Base64 and decode Base64 back to text.
Convert strings to UTF-8 variable-length byte streams in hexadecimal format and decode back.