URLs have rules about which characters are allowed. Spaces, special characters, and non-ASCII characters must be converted to a percent-encoded format before being used in URLs. This tool helps you encode and decode these values quickly.
URL Components
Query parameters, path segments, and fragment identifiers often contain spaces and special characters. Use component encoding to safely encode only those parts of a URL while preserving the URL structure.
Input: hello world
Encoded: hello%20world
Full URL Encoding
Full URL encoding preserves URL structure (protocol, domain, path separators) while encoding special characters. Use this when encoding an entire URL.
Input: https://example.com/search?q=hello
Encoded: https://example.com/search?q=hello
URL Slugs
A slug is a URL-safe version of text, typically lowercase with spaces converted to hyphens. Slugs are commonly used in blog URLs and SEO-friendly links.
Input: Hello World!
Slug: hello-world
Reserved Characters
Some characters have special meaning in URLs (like ?, &, #, /) and are only encoded when necessary. Component encoding handles this correctly.