Samples

URL encoding sample library.

Real-world examples covering common patterns and edge cases. Click any sample to copy it, or open it directly in the decoder.

Simple greeting
Hello%2C%20World%21
Hello, World! — comma and exclamation mark percent-encoded, space as %20.
Form-encoded space
Hello+World
Hello World — using + for spaces (the form-encoded variant).
Full URL with query
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%26lang%3Den
A complete URL encoded as a value (e.g., for embedding in a redirect parameter).
UTF-8 with accents
caf%C3%A9%20%26%20p%C3%A2tisserie
café & pâtisserie — the é and â are encoded as their two-byte UTF-8 sequences.
Emoji
I%20%E2%9D%A4%EF%B8%8F%20URL%20encoding
I ❤️ URL encoding — the heart emoji is encoded as multiple UTF-8 bytes.
Reserved chars in value
a%3Db%26c%3Dd
a=b&c=d — the = and & are encoded because they're data, not query structure.
Path with spaces
%2Fapi%2FMy%20Item%2Fdetails
/api/My Item/details — path encoding preserves slashes.
Double-encoded
Hello%2520World
Double-encoded "Hello World" — needs decoding twice. The %25 is itself the encoding of %.
Long query string
utm_source%3Dnewsletter%26utm_campaign%3Dspring%2Bsale%26utm_content%3DCTA%2520button
A typical analytics tracking URL with multiple percent-encoded parameters.
Cyrillic
%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82
Привет (Russian "hello") — encoded as Cyrillic UTF-8 byte sequences.
Chinese (UTF-8)
%E4%BD%A0%E5%A5%BD%E4%B8%96%E7%95%8C
你好世界 (Chinese "hello world") — three Chinese chars, each three bytes in UTF-8.
Japanese (UTF-8)
%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF
こんにちは (Japanese "hello") — Hiragana in UTF-8.
Related tools

More from the toolkit.