%
URL Encoder / Decoder
Encode or decode URL components and query strings
What is URL Encoder / Decoder?
URL Encoder / Decoder converts special characters in URLs to their percent-encoded equivalents and back. URLs can only contain certain ASCII characters — spaces, symbols, and non-ASCII characters must be encoded (e.g., space becomes %20). This tool is essential for building query strings, debugging API endpoints, and fixing broken URLs.
How to Use This Tool
- Paste a URL or text containing special characters
- Click Encode to convert special characters to percent-encoded format
- Or paste an encoded URL and click Decode to reveal the original text
- Copy the result for use in your application or browser
Common Use Cases
- Encoding query parameters with special characters for API calls
- Decoding percent-encoded URLs to read the original text
- Debugging broken URLs that contain spaces or unicode characters
- Building safe redirect URLs with encoded parameters
Frequently Asked Questions
What characters need URL encoding?
Spaces, &, =, ?, #, /, and most non-ASCII characters need encoding. Letters (a-z, A-Z), digits (0-9), and - _ . ~ are safe without encoding.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL preserving :, /, ?, and #. encodeURIComponent encodes everything including those characters, suitable for query parameter values.
Related Developer Tools
{}B64&;ID
JSON Formatter & Validator
Format, validate, and beautify JSON data with syntax highlighting
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text
HTML Entity Encoder / Decoder
Encode special characters to HTML entities or decode them back
UUID Generator
Generate random UUIDs (v4) in bulk with one click