URLEncoder.tools is a free online URL encoder and decoder that converts special characters in URLs to their percent-encoded equivalents as defined by RFC 3986. It supports five encoding modes: Standard URL Encode (encodeURIComponent), Full URL Encode (encodeURI), URL Decode, Batch Mode for multiple URLs, and Form Data Encode. All processing happens client-side in the browser with zero data sent to any server. The tool supports 12 languages and works with Unicode characters including emoji.
मुफ्त ऑनलाइन URL एनकोडर और डिकोडर टूल
किसी भी URL स्ट्रिंग को तुरंत एनकोड या डिकोड करें — RFC 3986 अनुपालन, आपके ब्राउज़र में काम करता है, सर्वर पर कोई डेटा नहीं भेजा जाता।
सुझाव: एनकोड करने के लिए Ctrl+Enter दबाएँ, साफ़ करने के लिए Esc दबाएँ
संबंधित उपकरण
URL एनकोडिंग क्या है?
URL encoding (also called percent-encoding) is a method of converting special characters in a URL into a format that can be safely transmitted over the internet. It replaces unsafe ASCII characters with a percent sign (%) followed by two hexadecimal digits representing the character's byte value, as defined by RFC 3986.
For example, a space character becomes %20, an ampersand (&) becomes %26, and a question mark (?) becomes %3F. The unreserved characters that do not require encoding are: A-Z, a-z, 0-9, hyphen (-), underscore (_), period (.), and tilde (~).
URL एनकोडिंग कैसे काम करती है?
URL encoding works by converting each character to its UTF-8 byte sequence, then representing each byte as a percent sign followed by two hexadecimal digits. Single-byte ASCII characters like a space produce one percent-encoded triplet (%20), while multi-byte Unicode characters produce multiple triplets.
RFC 3986 divides characters into two groups: reserved characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =) that have special meaning in URL syntax, and unreserved characters (A-Z, a-z, 0-9, -, _, ., ~) that can appear in URLs without encoding. Reserved characters must be percent-encoded when used as data rather than as delimiters.
आपको URL एनकोड कब करने की आवश्यकता होती है?
जब URL में स्पेस, एम्परसेंड (&), बराबर चिह्न (=), या गैर-ASCII वर्ण जैसे विशेष वर्ण होते हैं तो आपको URL एनकोड करने की आवश्यकता होती है। सामान्य परिदृश्यों में शामिल हैं: API कॉल के लिए क्वेरी स्ट्रिंग बनाना, सबमिशन के लिए फॉर्म डेटा एनकोड करना, ईमेल या संदेशों में विशेष वर्णों वाले URL साझा करना, और अंतर्राष्ट्रीयकृत डोमेन नामों के साथ काम करना।
Query Strings & API Calls
When building REST API requests, query parameters containing special characters like &, =, or spaces must be percent-encoded to avoid breaking the URL structure.
Form Data Submission
HTML forms submitted via GET method encode field values as query parameters. Spaces become + or %20, and special characters are percent-encoded.
Email & Messaging Links
URLs shared in emails or chat messages often contain special characters that need encoding to remain clickable and functional.
JavaScript fetch() & AJAX
When constructing URLs dynamically in JavaScript, always use encodeURIComponent() for parameter values to prevent XSS and malformed requests.
सामान्य URL-एनकोडेड वर्ण
| Character | Encoded | Unicode |
|---|---|---|
| (space) | %20 | U+0020 |
| ! | %21 | U+0021 |
| # | %23 | U+0023 |
| $ | %24 | U+0024 |
| & | %26 | U+0026 |
| + | %2B | U+002B |
| , | %2C | U+002C |
| / | %2F | U+002F |
| : | %3A | U+003A |
| ; | %3B | U+003B |
| = | %3D | U+003D |
| ? | %3F | U+003F |
| @ | %40 | U+0040 |
| [ | %5B | U+005B |
| ] | %5D | U+005D |
प्रोग्रामिंग भाषाओं में URL एनकोडिंग
JavaScript
encodeURIComponent('hello world')
// → "hello%20world"
decodeURIComponent('hello%20world')
// → "hello world"
encodeURI('https://example.com/search?q=hello world')
// → "https://example.com/search?q=hello%20world"Python
from urllib.parse import quote, unquote
quote('hello world')
# → "hello%20world"
unquote('hello%20world')
# → "hello world"PHP
urlencode('hello world');
// → "hello+world"
rawurlencode('hello world');
// → "hello%20world"
urldecode('hello%20world');
// → "hello world"Java
URLEncoder.encode("hello world", "UTF-8");
// → "hello+world"
URLDecoder.decode("hello+world", "UTF-8");
// → "hello world"C#
Uri.EscapeDataString("hello world");
// → "hello%20world"
Uri.UnescapeDataString("hello%20world");
// → "hello world"Ruby
require 'uri'
URI.encode_www_form_component('hello world')
# → "hello+world"
URI.decode_www_form_component('hello+world')
# → "hello world"अक्सर पूछे जाने वाले प्रश्न
किन वर्णों को URL एनकोड करने की आवश्यकता है?
जिन वर्णों को URL एनकोडिंग की आवश्यकता है उनमें स्पेस, &, =, ?, #, % जैसे विशेष वर्ण और सभी गैर-ASCII वर्ण शामिल हैं। जिन अनारक्षित वर्णों को एनकोडिंग की आवश्यकता नहीं है वे हैं: A-Z, a-z, 0-9, हाइफ़न (-), अंडरस्कोर (_), पीरियड (.), और टिल्ड (~)।
URL में %20 और + में क्या अंतर है?
%20 URL पथ में स्पेस को दर्शाता है और यह मानक प्रतिशत-एनकोडिंग है। + चिह्न केवल application/x-www-form-urlencoded प्रारूप का उपयोग करते समय क्वेरी स्ट्रिंग पैरामीटर में स्पेस को दर्शाता है।
क्या URL एनकोडिंग और Base64 एनकोडिंग एक ही है?
नहीं। URL एनकोडिंग URL में विशेष वर्णों को %XX हेक्स प्रारूप में बदलता है। Base64 एनकोडिंग 64 प्रिंट करने योग्य ASCII वर्णों का उपयोग करके बाइनरी डेटा को टेक्स्ट स्ट्रिंग में बदलता है। वे पूरी तरह से अलग-अलग उद्देश्यों की पूर्ति करते हैं।
JavaScript में URL को कैसे डिकोड करें?
URL घटक को डिकोड करने के लिए decodeURIComponent() का उपयोग करें, या पूर्ण URL को डिकोड करने के लिए decodeURI() का उपयोग करें। उदाहरण: decodeURIComponent('%20') एक स्पेस वर्ण लौटाता है।
RFC 3986 क्या है?
RFC 3986 वह मानक है जो यूनिफ़ॉर्म रिसोर्स आइडेंटिफ़ायर (URIs) के सिंटैक्स को परिभाषित करता है। यह निर्दिष्ट करता है कि URL में कौन से वर्ण अनुमत हैं और विशेष वर्णों को प्रतिशत-एनकोड कैसे किया जाना चाहिए।
मेरे URL में %3D और %26 क्यों हैं?
%3D बराबर चिह्न (=) का URL-एनकोडेड रूप है और %26 एम्परसेंड (&) का एनकोडेड रूप है। इन वर्णों का URL में विशेष अर्थ होता है, इसलिए जब इन्हें डेटा मान के रूप में उपयोग किया जाता है तो इन्हें एनकोड किया जाना चाहिए।
URL एनकोडिंग के बारे में और जानें
URL एनकोडिंग सर्वोत्तम प्रथाओं के बारे में हमारे विस्तृत गाइड और ट्यूटोरियल पढ़ें।
हमारे ब्लॉग पर जाएँ