URL Encode / Decode
Built for developers, this tool runs 100% locally in your browser. Your text never leaves your device — there is no backend database, keeping every test fully compliant with data-security best practices.
Result
FAQ
Q: What's the difference between PHP's urlencode() and rawurlencode(), and which one does this tool match?
A: urlencode() encodes a space as + and follows the older application/x-www-form-urlencoded format — that's the "Form encoding" option here. rawurlencode() encodes a space as %20 and additionally escapes ! * ' ( ), following RFC 3986 — that's the "RFC 3986" option here. Use Form encoding for a classic query string, and RFC 3986 for a URL path segment.
Q: Why does decoding sometimes fail with an error?
A: Decoding fails when the input contains a malformed percent-encoded sequence, such as a stray % not followed by two valid hex digits. Double-check that the text was actually URL-encoded and wasn't truncated or edited.