It looks like your browser language isn't English. Would you like to switch to the Traditional Chinese version? 切換到繁體中文 ×

URL Encode / Decode

security Security & Privacy Guarantee

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.

RFC 3986 uses '%20' for space and matches PHP's rawurlencode()/rawurldecode() — typical for URL path segments. Form encoding uses '+' for space and matches PHP's urlencode()/urldecode() — typical for query strings.

Result

Waiting for input...

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.

Done