URL Encoder
Percent-encode strings for safe use in URLs and query strings. Browser-only.
Need more than a converter? AI background removal, upscale, edit and generate — one workspace.
How to use the URL Encoder
- 1Paste inputType or paste — the conversion runs as you type.
- 2Read outputUpdates live, with errors flagged if input is invalid.
- 3CopyClick Copy or select the output to copy.
About this tool
Percent-encoding (URL encoding) replaces characters that have special meaning in URLs (`?`, `&`, `=`, spaces) with `%` followed by a two-digit hex code so the URL can be safely passed around.
This tool uses `encodeURIComponent`, which is correct for query-string parameters. For full URLs (where `?`, `&`, `=` should stay literal) use `encodeURI` — most tools use the former by default.
Frequently asked questions
Unicode?
Which encode function?
Mobile?
Free?
Need more than free tools? Get Postcrest's full AI image suite.
AI background removal, AI upscaling, AI image editor and AI photoshoot — every leading model in one workspace.