G
GoTool

URL Codec

URL encode and decode

Input0
Output
0

About URL Encoder/Decoder

Encode and decode URLs and URL components. URL encoding (also known as percent-encoding) converts special characters into a format that can be safely transmitted in URLs. Essential for working with query parameters, API endpoints, and web development.

Frequently Asked Questions

What characters are encoded?

Special characters like spaces, &, =, ?, #, and non-ASCII characters are converted to percent-encoded format (e.g., space becomes %20).

What's the difference between encodeURI and encodeURIComponent?

encodeURI preserves URL structure characters (like :, /, ?) while encodeURIComponent encodes everything except letters, digits, and - _ . ~. This tool uses encodeURIComponent for maximum safety.

When should I URL encode?

Always encode user input before including it in URLs, especially in query parameters. This prevents broken URLs and potential security issues.