URL Encode Online
Encode text for safe use in URLs. Toggle between encodeURIComponent and encodeURI modes with real-time encoding as you type.
URL encoding (percent encoding) converts characters that are not allowed in URLs into percent-encoded format (%XX). This free online URL encoder supports both encodeURIComponent (for query values, path segments) and encodeURI (for complete URLs). Characters are encoded in real-time as you type.
encodeURI vs encodeURIComponent
JavaScript provides two functions for URL encoding. They differ in which characters they encode. Choose the right one based on your use case.
Encode a complete URL (preserves structure: ://?#&=)
Encode a URL component (query parameter value, path segment)
| Character | encodeURI | encodeURIComponent |
|---|---|---|
| space | %20(Encoded) | %20(Encoded) |
| ! | !(Not encoded) | !(Not encoded) |
| # | #(Not encoded) | %23(Encoded) |
| $ | $(Not encoded) | %24(Encoded) |
| & | &(Not encoded) | %26(Encoded) |
| + | +(Not encoded) | %2B(Encoded) |
| , | ,(Not encoded) | %2C(Encoded) |
| / | /(Not encoded) | %2F(Encoded) |
| : | :(Not encoded) | %3A(Encoded) |
| ; | ;(Not encoded) | %3B(Encoded) |
| = | =(Not encoded) | %3D(Encoded) |
| ? | ?(Not encoded) | %3F(Encoded) |
| @ | @(Not encoded) | %40(Encoded) |
FAQ
ให้คะแนนเครื่องมือนี้
3.7 / 5 · 147 คะแนน
Recommended
CloudflareFree CDN & DDoS protectionอัปเดตข่าวสาร
รับเคล็ดลับการพัฒนาและเครื่องมือใหม่ทุกสัปดาห์
ไม่มีสแปม ยกเลิกได้ตลอดเวลา
Enjoy these free tools?
☕Buy Me a Coffee