URL Encoder & Decoder Online
Encode or decode URLs instantly. Supports encodeURIComponent for query parameters and encodeURI for full URLs.
Runs entirely in your browser - no data is sent to any server.
URL Encoding Examples
Original:
https://example.com/search?q=hello world&lang=enEncoded:
https://example.com/search?q=hello%20world&lang=enWhen to Use encodeURI vs encodeURIComponent
encodeURIComponent
Encodes all special characters including &, =, ?, /
Use for: query parameter values, form data
encodeURI
Preserves URL structure characters like /, ?, &
Use for: complete URLs, path segments
Common URL Encodings
space->%20&->%26=->%3D?->%3F/->%2F#->%23Common URL Encoding Mistakes
- xDouble-encoding already encoded URLs
- xUsing encodeURI for query parameters
- xForgetting to encode special characters in paths
- xNot decoding before processing user input
Working with web data? You may also need our Base64 Encoder, HTML Entities Encoder, or JSON Formatter.