URL Encoder
Encode text to URL-safe format instantly. Converts spaces to %20, special characters to percent-encoded values. Essential for building query strings and form data.
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
How do I encode text for URLs?
Simply paste your text in the input field and click Encode. Special characters like spaces, &, =, and ? will be converted to their percent-encoded equivalents.
What characters get encoded?
All characters except A-Z, a-z, 0-9, and -_.~ are encoded. Common examples: space→%20, &→%26, =→%3D, ?→%3F, /→%2F.
Related Tools
📚 Learn More
Ad Space - 728x90 Leaderboard