URL Encoder / Decoder
Percent-encode a URL component for safe use in a query string, or decode one back to readable text — entirely in your browser.
Runs entirely in your browser — nothing is sent to our servers.
How to use it
- Choose Encode or Decode.
- Paste your input on the left.
- Read the result on the right and copy it.
Input
hello%20a2zutil.dev%20worldWhat is URL encoding?
Percent-encoding (also called URL encoding) replaces characters that aren't safe inside a URL — spaces, ampersands, slashes, and anything outside the ASCII range — with a % followed by their hex byte value, so the result survives being placed inside a query string, path segment, or form submission without being misread as structural syntax.
Why use this tool
Everything happens in your browser — nothing you paste here is sent anywhere. Encoding uses the browser's own UTF-8-aware APIs, so emoji and non-Latin scripts round-trip correctly rather than producing mojibake.
This is a fast way to check exactly what a query parameter value will look like on the wire, or to decode a URL pulled from a log line or browser address bar back into something readable.
URL encoding gotchas
encodeURIComponent vs. encodeURI
encodeURIComponent and the older encodeURI disagree on which characters they touch — encodeURIComponent escapes &, = and ? because it assumes you're encoding a single value that will be placed inside a query string, while encodeURI leaves those alone because it assumes you're encoding a whole URL that already contains them structurally. This tool encodes a component (like encodeURIComponent) — the right choice for a query-string value, not for an entire URL.
Decode treats + as a space
Decode here converts a literal + into a space before percent-decoding, matching how browsers and servers read application/x-www-form-urlencoded query strings and form bodies. That's usually what you want when decoding a query string, but if the text you're decoding genuinely contains a literal plus sign (a phone number, a math expression) rather than an encoded space, it will come out wrong — percent-encode a literal + as %2B at the source to avoid the ambiguity.
Related tools
Base64 Encoder / Decoder
Encode or decode Base64, including the URL-safe alphabet.
Case Converter
camelCase, snake_case, kebab-case, PascalCase and more, all at once.
Find & Replace
Regex, whole-word and case-sensitive search and replace, in place.
JSON Formatter
Format, minify and validate JSON, with auto-repair for common invalid JSON.
JSON ↔ CSV
Convert a JSON array of objects to CSV, or back.
JSON Compare
Diff two JSON documents, path by path.
SQL Formatter
Indent queries with keyword casing options.
UUID v4 Generator
Generate one or many cryptographically random UUID v4s.
Text Transform
Lines to a delimited list, and back.
BIN Checker
Card issuer lookup from a BIN/IIN.
Temporary Email
A disposable inbox for live-testing incoming mail.
Webhook
Inspect live webhook deliveries.