URL组件编解码
encodeURIComponent/decodeURIComponent;不是整个URL解析。
使用步骤
如何使用
- Paste a URL component up to 100,000 characters.
- Choose Encode component or Decode component.
- Review the transformed value and copy it.
Components, not full URLs
This tool uses encodeURIComponent and decodeURIComponent. Use it for an individual query value, path segment, or fragment value; encoding an entire URL would also escape its structural colon and slashes.
Decode carefully
Malformed percent escapes cannot be decoded and produce an error. A plus sign is left as a plus sign because this tool follows JavaScript component encoding rather than form-url-encoded rules.
常见问题
你可能还想知道
Should I paste a full URL?
No. Paste the component you want to encode or decode, such as one query value.
Does plus become a space?
No. A plus sign remains a plus sign with encodeURIComponent and decodeURIComponent.
Why did decoding fail?
The input has malformed percent escapes or an invalid encoded character sequence.