Encode text for safe use in URLs.
🔗 Encodes special characters for safe use in URLs. Spaces become %20, & becomes %26.
URL encoding (also called percent encoding) converts special characters into a format that's safe to include in a URL. Spaces become %20, & becomes %26, and so on.
URLs can only contain a limited set of characters safely. Characters like spaces, quotes, &, =, and non-ASCII letters have special meaning or aren't allowed, so they must be encoded to travel through the web reliably.
%20 (or + in query strings)& → %26= → %3D? → %3F/ → %2FJavaScript has two functions. encodeURI preserves URL-structure characters (/ ? & =) for whole URLs. encodeURIComponent encodes everything, for query parameter values. This tool uses the latter, which is what you usually want.
More tools you might find useful
Extract URL query parameters into a JSON object.
Decode user-agent strings into browser, OS, engine, and device.
Base URL plus UTM parameters in, finished tracking link out — with naming hints.
Generate random v4 UUIDs for databases, sessions, and APIs.