Introduction
URLs can only contain a limited set of characters. Special characters like spaces, #, ?, and & must be encoded as percent-encoded values.
This tool encodes or decodes URLs and URL components.
Modes: encodeURI · encodeURIComponent · decodeURI · decodeURIComponent
How to Use
- Choose mode
Encode or decode. - Toggle component mode
For query params, use encodeURIComponent. - Copy the output
Use in URLs or APIs.
Which one? encodeURI for full URLs, encodeURIComponent for query parameters.
About This Tool
Uses native JavaScript encoding functions. Handles all special characters correctly.
Privacy
All processing is client-side.