Query String Encoder
Encode query string parameters for use in URLs. Perfect for building API requests, form submissions, and safe URL construction.
Ad Space - 728x90 Leaderboard
Type:
Try:
0 chars
0 chars
URL Encoding Reference
→ %20
Space
& → %26
Ampersand
= → %3D
Equals
? → %3F
Question mark
/ → %2F
Forward slash
# → %23
Hash
+ → %2B
Plus
@ → %40
At sign
encodeURI vs encodeURIComponent
encodeURIComponent: Encodes all special characters including /, ?, &, =, #. Use for encoding URL parameter values.
encodeURI: Preserves URL structure characters (/, ?, &, =, #, :). Use for encoding entire URLs while keeping them valid.
encodeURIComponent("a=b&c=d") → "a%3Db%26c%3Dd"
encodeURI("a=b&c=d") → "a=b&c=d" (unchanged)
Ad Space - Native/In-content
Frequently Asked Questions
What is a query string?
A query string is the part of a URL after the ? symbol, containing key=value pairs separated by &. Example: ?name=John&city=New%20York
When should I encode query parameters?
Always encode query parameter values when they might contain special characters like spaces, &, =, or non-ASCII characters.
Related Tools
📚 Learn More
Ad Space - 728x90 Leaderboard