URL Encoder & Decoder
Toggle between encode and decode. Encoding is RFC 3986 compliant. Decoding handles + as space (form encoding) and standard %XX sequences.
Output
Hello%20world%20%26%20friends%3F
How it works
Encoding uses encodeURIComponent for full RFC 3986 component encoding. Decoding uses decodeURIComponent and replaces "+" with space first to handle form-encoded inputs.
Frequently asked
- When should I URL-encode?
- Any time you put user input into a query string, form body, or URL path. Spaces, &, =, ?, and unicode characters all need encoding.
- Why does my space become %20 sometimes and + other times?
- In URL paths, spaces become %20. In query strings encoded as form data, spaces traditionally become +. Both decode to a space.
- Can I encode the whole URL?
- Use encode-component on individual parts (path segments, query values), not the whole URL — encoding the colon after http: would break the URL.
Other generators
- Stopwatch
- Password Generator
- QR Code Generator
- Hex to RGB Converter
- Barcode Generator
- Base64 Encoder & Decoder
- RGB to Hex Converter
- Hash Generator
- CSS Gradient Generator
- Lorem Ipsum Generator
- Random Word Generator
- Random Quote Generator
- Username Generator
- UUID Generator
- Color Palette Generator
- Roman Numeral Converter
- Slug Generator
- Number to Words Converter
Popular calculators
Share
Popular converters
- Centimeters to incheslength
- Kilograms to poundsmass
- Millimeters to incheslength
- Pounds to kilogramsmass
- Celsius to fahrenheittemperature
- Kilometers to mileslength
- Inches to centimeterslength
- Meters to feetlength
- Fahrenheit to celsiustemperature
- Inches to feetlength
- Inches to millimeterslength
- Liters to US gallonsvolume