开发者工具

URL编码/解码

编码和解码URL组件和查询字符串参数

Raw URL / Text Input
Encoded Output
69 characters69 bytes

Client-side only — uses native browser encodeURIComponent / decodeURIComponent (RFC 3986). Your data never leaves the browser.

URL Encoder & Decoder

Encode special characters in URLs (percent-encoding) or decode percent-encoded strings back to readable text. Essential for query parameters, API endpoints, and web scraping.

FAQ

What is URL encoding?

URL encoding replaces unsafe ASCII characters with % followed by two hex digits. A space becomes %20, & becomes %26.

When do I need to URL encode?

When passing special characters in query parameters or form data. Unencoded characters like #, &, and = break the URL.

encodeURI vs encodeURIComponent?

encodeURI encodes a full URL and leaves /, ?, # intact. encodeURIComponent encodes a single value and escapes those characters too — use it for query string values.

没找到需要的?

我们根据社区反馈开发免费工具。欢迎提出能改善您工作流的工具建议!

URL编码/解码 — 免费工具在线 | FreeTool24 | FreeTool24