DEV
🔐 Encoding
URL Encoder / Decoder
URL encoding (percent-encoding) converts special characters into a safe format for web transmission. Spaces become %20, ampersands become %26, etc. This is essential for building query strings and safe URL construction.
How to Use
- Select Encode to percent-encode a URL or text string, or Decode to reverse the process.
- Enter your URL or text in the input panel.
- Click Transform to encode or decode.
- Encoded URLs can be safely used in query strings, forms, and API calls.
How It Works
Each byte of the input string is converted to a two-digit hexadecimal value prefixed with a percent sign (%). Characters that are already safe for URLs (letters, numbers, - _ . ~) may be preserved or encoded depending on the implementation.