URL Encoder & Decoder

Encode special characters in URLs for safe web transmission, or decode percent-encoded strings back to readable text.

URL Processor

Web
Input Text / URL
Characters: 0
Output
Encoded or decoded result will appear here...
Quick Examples

About URL Encoding

What is URL Encoding (Percent-Encoding)?

URL encoding converts characters into a web-safe format using a percent sign (`%`) followed by two hexadecimal digits (e.g., a space becomes `%20`). This is essential because URLs can only contain a limited set of ASCII characters safely[citation:3][citation:6]. Special, reserved, or non-ASCII characters must be encoded for proper transmission over the internet[citation:5].

Common Use Cases

โ€ข Query Strings: Encoding values in URL parameters (e.g., `?q=search+query`).
โ€ข Form Data: Preparing `application/x-www-form-urlencoded` data for POST requests[citation:3].
โ€ข Special Characters: Including symbols like `&`, `=`, `?`, or `/` as data within a URL.
โ€ข International Text: Encoding non-ASCII characters (e.g., `รง` becomes `%C3%A7` in UTF-8)[citation:5].

How This Tool Works

This tool uses your browser's built-in JavaScript functions for processing[citation:3][citation:4].
โ€ข Encoding: Uses `encodeURIComponent()` for thorough encoding of all relevant characters[citation:6].
โ€ข Decoding: Uses `decodeURIComponent()` to revert percent-encoded strings to plain text[citation:6].
All processing happens locally in your browser. No data is ever sent to a server.

Common Encoded Characters

Spaceโ†’ %20 or + (in queries) Quotation Mark (")โ†’ %22 Percent Sign (%)โ†’ %25 Ampersand (&)โ†’ %26 Plus (+)โ†’ %2B Forward Slash (/)โ†’ %2F Colon (:)โ†’ %3A Question Mark (?)โ†’ %3F At Sign (@)โ†’ %40[citation:6]