WhatIPIP tools + free calculators
Free tool, no signup

URL Encoder and Decoder (Percent-Encoding)

Encode any string to URL-safe percent-encoding, or decode an encoded URL back to plain text.

About this tool

URL encoding (also called percent-encoding) replaces unsafe characters in a URL with their percent-prefixed hexadecimal byte representation. Spaces become %20, ampersands become %26, equals signs become %3D, and so on. This is required when you pass arbitrary text in URL paths, query strings, or fragment identifiers, because many characters have special meaning in URL grammar and would break the URL if used directly. This tool encodes and decodes URL-safe percent-encoded strings in either direction, using the modern encodeURIComponent semantics that match what browsers and HTTP libraries actually use. Paste an unencoded URL or text to get the encoded form, or paste an encoded URL to recover the original characters.

Frequently asked questions

4 questions answered

Both encode spaces but apply in different contexts. %20 is the modern URL-safe encoding used in paths and query strings. The plus sign is a legacy encoding used specifically in application/x-www-form-urlencoded form submissions. They are interchangeable in most modern systems, but this tool produces %20 because encodeURIComponent (the JavaScript primitive used here) outputs %20.

Related tools

This tool runs in your browser. We do not log or store the data you enter. Results are returned by your own browser and may not match third-party services bit-for-bit if those services interpret edge cases differently.