About This Tool
What is URL Encoder / Decoder?
A tool for encoding and decoding URL strings. URL encoding is essential when web addresses contain special characters, spaces, or non-ASCII characters like CJK text. It ensures safe transmission of query parameters in web requests.
How to Use
- Enter the string you want to encode or decode in the input area.
- Click 'Encode' to convert special characters to percent-encoding (%XX).
- Click 'Decode' to restore encoded strings to their original characters.
- Copy the result for use in your project.
Key Features
- Standard URL encoding based on encodeURIComponent
- Full support for non-ASCII characters including CJK
- Bidirectional encode/decode conversion
- Real-time result display
Tips
- Special characters like &, =, ?, and # must be encoded in URLs to work as intended.
- Spaces are converted to %20 or + during URL encoding.
- Always encode user input in query parameters when making API calls.
URL Encoder / Decoder
Encode or decode URL strings
Frequently Asked Questions
What is the difference between encodeURI() and encodeURIComponent()?▼
encodeURI() encodes a full URI but preserves special characters like :, /, ?, and #. encodeURIComponent() encodes everything including those characters, making it suitable for encoding individual query parameter values.
Why do spaces sometimes appear as %20 and sometimes as +?▼
%20 is the standard percent-encoding for spaces in URLs. The + sign is used only in application/x-www-form-urlencoded format (HTML form submissions). Both represent a space, but %20 is more universally correct in URLs.
Do I need to encode non-English characters like Korean or Japanese in URLs?▼
Yes. Non-ASCII characters must be URL-encoded for safe transmission. Modern browsers display decoded characters in the address bar for readability, but the actual HTTP request uses the encoded form.
Related Tools
Codec (Encoder / Decoder)
Encode and decode text in Base64, Base64URL, Base32, Hex, and ASCII85
Data Format Converter
Convert and validate between JSON, YAML, TOML, XML, INI, and Properties formats
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 hashes from text
JWT Encoder / Decoder
Encode or decode JWT tokens
Regex Tester
Test regular expressions with real-time matching
Case Converter
Convert text between camelCase, PascalCase, snake_case, and more — all at once