URL Encoder & Decoder
URL-encode query strings and decode percent-encoded URLs. Free tool for APIs, forms, and debugging—copy paste, runs locally.
About URL Encode/Decode
URL encoding (percent-encoding) replaces unsafe characters with %XX hex codes so links and query parameters parse correctly in browsers and servers.
How to Use URL Encode/Decode
Paste the string or full URL fragment to encode. Or paste an encoded value to decode human-readable text. Copy into your analytics builder or backend test suite.
When to Use URL Encode/Decode
Marketing: UTM parameters with spaces and symbols. APIs: Debug query strings that return 400 Bad Request. Scraping: Normalize href attributes before fetch.
Why Use This URL Encode/Decode?
Prevents broken links from raw spaces and ampersands in query values.
Unicode vs HTML formatting
Base64 is for arbitrary binary in headers or JSON. URL encoding is for path and query components in HTTP URLs.
Platform compatibility
Essential when building tracking links, OAuth redirects, and form GET requests. Always encode user input before concatenating into URLs.
Examples
- hello world → hello%20world
- foo=1&bar=two → foo%3D1%26bar%3Dtwo (component-level)
- %E2%9C%94 — checkmark UTF-8 sequence
Frequently asked questions
Should I encode the whole URL?
Usually encode components (query values) not the protocol :// or domain.
Encode vs URI vs URL?
Colloquially the same percent-encoding scheme for reserved characters in URIs.