URL Encoder / Decoder
Encode text for safe use in URLs and query strings, or decode percent-encoded URLs back to plain text. Handles reserved characters and UTF-8.
Privacy: your input is processed entirely in your browser and is never sent to our servers.
How to Use URL Encoder / Decoder
- 1Choose encode or decode mode.
- 2Paste your URL or text into the input.
- 3Press the button to convert and copy the result.
What This Tool Does
URLs cannot contain spaces or certain reserved characters directly, so any text placed into a query string must be percent-encoded first. This tool replaces unsafe characters with a percent sign and the matching hex bytes using the standard encodeURIComponent and decodeURIComponent functions, with full UTF-8 support for international characters. Encode individual query parameter values rather than a whole URL with its slashes, since encoding the slashes in a path breaks the link. Decode mode is handy for reading encoded query strings copied from a browser address bar. Use it before building a link with a search term, sharing a URL containing special characters, or debugging a query string.
Examples
Building a search link
Encode a search term containing spaces and an ampersand before placing it into a URL query parameter so the link works correctly when shared.
Reading an encoded URL
Paste an encoded query string from an address bar and decode it to read the original parameter values for debugging.
Helpful Tips
- Encode individual query parameter values, not the whole URL with its slashes.
- Decode mode is handy for reading encoded query strings.
- Plus signs are not converted to spaces; use form encoding if you need that.
Frequently Asked Questions
Should I encode the whole URL?
Usually only the query parameter values. Encoding slashes in a path breaks the URL.
Does it handle Unicode?
Yes, UTF-8 characters are encoded and decoded correctly.
What if decoding fails?
A clear error is shown if the input contains invalid percent sequences.
Related Tools
JSON Formatter & Validator
Format, beautify and validate JSON instantly.
Open toolBase64 Encoder / Decoder
Encode text to Base64 or decode it back.
Open toolUUID Generator
Generate random RFC 4122 version 4 UUIDs.
Open toolUnix Timestamp Converter
Convert between Unix timestamps and human dates.
Open tool