Percent-encode text for safe use in a URL, or decode a percent-encoded URL back to plain text, instantly.
Type or paste text to see the converted output
This free URL encoder and decoder percent-encodes text so it's safe to use inside a URL, or decodes a percent-encoded URL back into readable text — instantly, live, and entirely inside your browser. URL encoding is essential whenever a value like a search query, filename, or parameter contains spaces, symbols, or non-ASCII characters that could otherwise break the URL.
Choose Encode to percent-encode your text, or Decode to convert a percent-encoded string back into plain text. Internally, the tool uses JavaScript's encodeURIComponent and decodeURIComponent functions, which convert every character outside the small "unreserved" set (letters, digits, and - _ . ~) into a % followed by its two-digit hexadecimal UTF-8 byte value — for example, a space becomes %20 and an ampersand becomes %26.
Developers building query strings or debugging why a link with special characters breaks, anyone decoding a long, unreadable percent-encoded URL back into plain text, and students learning how browsers safely transmit non-ASCII characters in URLs. It's a quick, no-signup alternative to running encodeURIComponent() in a browser console.
encodeURIComponent does — meant for individual values, not a full URL with its own structure.:// and /), use encodeURI logic instead, which leaves structural characters untouched.The character-by-character process behind the conversion
Letters (A-Z, a-z), digits (0-9), and - _ . ~ are always safe in a URL and never need encoding.
Characters like & ? # / : have structural meaning in URLs — as literal data within a value, they must be encoded to avoid confusion.
Any character outside basic ASCII (accented letters, emoji, non-Latin scripts) is encoded via its UTF-8 byte sequence.
From choosing a mode to copying your result
Select Encode to percent-encode text for use in a URL, or Decode to convert a percent-encoded URL back to plain text.
Type or paste the text or URL into the input box.
The converted output appears instantly below, ready to copy.
Encoding a search query with a space and an ampersand
Where percent-encoding shows up day to day
Encoding a multi-word search term before appending it to a URL's query string.
Understanding why a parameter containing & or # broke an API call.
Decoding a long, unreadable percent-encoded URL pasted from a browser or log file.
Seeing how accented characters or non-Latin scripts are represented in a URL.
Encoding filenames or paths that contain spaces or symbols before linking to them.
What this tool does well, and where percent-encoding has boundaries
Get accurate results every time
Summary: This tool percent-encodes text for safe use in a URL or decodes a percent-encoded URL back to plain text, instantly and entirely client-side. Pair it with the Base64 Encode / Decode tool for other text-encoding needs.
Common questions about URL encoding
Technical references to complement this tool
Other internet and developer tools