URL Encode / Decode
Percent-encode text so it is safe inside a URL query string or path segment (encodeURIComponent), or decode percent-encoded text back to plain text.
Instructions
Converts between plain text and its percent-encoded (URL-safe) form.
- Paste or type the text into Input.
- Pick Encode to make text safe for a URL, or Decode to turn
%20-style escapes back into characters. - The result appears in Output as you type — use Copy to take it.
Tips
- Encoding uses
encodeURIComponent, so/,?,&and=are escaped too. That is what you want for a single query value, not for a whole URL. - A
+in a query string means a space in form-encoded data but a literal plus here — decode it as%2Bif you need the character. - Not sure where to start? Hit Example and pick a direction — the input and output fill in for you.