Encode text for URLs or decode percent-encoded strings back to plain text.
URL encoding replaces characters that are not safe in a specific URL component with percent-encoded UTF-8 bytes. The correct operation depends on whether the input is an entire URL, one path segment, a query key, or a query value. This tool is designed for component values and does not claim that repeatedly encoding a complete URL will preserve its structure.
A query value “red shoes & socks” can be encoded before insertion into a URL so the ampersand is not mistaken for a second parameter. Encoding the complete string “https://example.com/search?q=red shoes” as one component would also encode its colon and slashes, producing a value rather than a navigable URL. Build the URL from separately encoded values or use URLSearchParams in application code.
Test coverage includes spaces, plus signs, ampersands, slashes, percent signs, CJK text, emoji, already encoded values, and malformed percent sequences. We compared representative output with browser URL APIs. The page distinguishes percent encoding from HTML escaping and Base64.
First separate the URL into semantic parts. Keep the scheme and host intact, split path segments at their intended slashes, and encode each dynamic query key or value independently. In application code, prefer URL and URLSearchParams so delimiters are assembled by an API rather than string concatenation. Test values containing spaces, plus, ampersand, equals, percent, slash, non-Latin characters, and emoji because these expose most boundary mistakes. Compare the decoded value at the receiver, not only the appearance of the outgoing URL. Avoid encoding a value twice: if input may already contain percent escapes, establish whether it is raw or encoded at the interface boundary. The tool can explain and debug component encoding, but it cannot determine whether a destination is legitimate, prevent open redirects, or replace output encoding appropriate to HTML, JavaScript, SQL, or shell contexts.
These references define the relevant format or browser behavior. They do not endorse WordCaseFix.
Last reviewed: August 6, 2026