URL Encoder/Decoder — Percent Encoding Tool
URLs में केवल specific ASCII characters allowed हैं। Spaces, Hindi text, और special characters को percent-encoding में convert करना पड़ता है। हमारा URL Encoder/Decoder यह instant करता है।
URL Encoding क्यों ज़रूरी है?
URL में space नहीं हो सकती — इसे %20 या + लिखते हैं। Hindi या non-ASCII characters को UTF-8 bytes में convert करके percent-encode करते हैं। उदाहरण: "नमस्ते" बनता है %E0%A4%A8%E0%A4%AE%E0%A4%B8%E0%A5%8D%E0%A4%A4%E0%A5%87
Query Parameters और Form Data
Form submission में application/x-www-form-urlencoded format use होता है। यहां space को + से represent करते हैं जबकि path में %20 use होता है।
Practical Examples
- API calls में parameters encode करना
- Search queries को URL-safe बनाना
- Email links में special characters handle करना
Encode/Decode करें: URL Encoder/Decoder
अक्सर पूछे जाने वाले प्रश्न
encodeURI और encodeURIComponent में क्या फर्क है?
encodeURI पूरा URL encode करता है और :, /, ? जैसे reserved chars नहीं बदलता। encodeURIComponent सभी special chars encode करता है — query parameters के लिए best।
URL में Hindi text directly use क्यों नहीं कर सकते?
पुराने HTTP standards में only ASCII था। IDN (Internationalized Domain Names) और modern browsers अब Unicode support करते हैं लेकिन encoding still necessary है।
% character itself को encode कैसे करते हैं?
% को %25 के रूप में encode किया जाता है।