URL Encoder — Percent-Encode Strings for URLs
Encode special characters in URLs using percent-encoding (RFC 3986). Ensure query parameters, paths, and fragment identifiers are safe for any browser or server.
Why URL Encoding Matters
URLs have a strict character set defined by RFC 3986. Characters like spaces, quotes, angle brackets, and non-ASCII letters can break URLs or cause ambiguity. Percent-encoding replaces each unsafe character with a % followed by its two-digit hexadecimal value, ensuring the URL is valid and unambiguous across all browsers and servers.
Frequently Asked Questions
Any character outside the unreserved set (A-Z, a-z, 0-9, -, _, ., ~) should be percent-encoded when used in a URL component. Common characters that must be encoded include spaces (%20), ampersands (%26), equals signs (%3D), and non-ASCII characters.
encodeURI encodes a full URI but preserves reserved characters like : / ? # that have structural meaning. encodeURIComponent encodes everything except unreserved characters, making it suitable for individual query parameter values. This tool lets you choose either mode.
Yes. Unicode characters are first converted to UTF-8 byte sequences, then each byte is percent-encoded. For example, the euro sign is encoded as %E2%82%AC.