A complete web encoding toolkit — URL & HTML entities, plus JSON, XML, JavaScript, CSS, SQL, Base64 and Unicode, with a URL parser, safe HTML preview, entity reference, batch mode and files. 100% in your browser.
Enter a URL in the input above to see its parts.
| Char | Name | Decimal | Hex |
|---|
More free, non-AI, browser-based developer utilities.
The URL & HTML Entity Encoder/Decoder has grown into a complete web encoding toolkit — a single, private, browser-based workspace for every text-transformation a web developer, backend engineer, tester or security professional runs into. On the web, text constantly has to be made "safe" for a particular context. A space or an ampersand in a URL must become %20 or %26; a less-than sign in HTML must become < so the browser shows it instead of treating it as a tag; a quote inside a JSON value must be escaped; a string embedded in a SQL query or a JavaScript literal has its own rules. Getting these transformations right — and reversing them correctly — is fiddly and error-prone by hand, and doing it in the wrong context is a common source of bugs and even security holes. This tool does every one of them instantly and correctly, with the output shown live as you type.
For URLs it offers the full family of encoders, not just one: encodeURIComponent for query values, encodeURI for whole addresses, strict RFC 3986 encoding that also escapes the sub-delimiters ! ' ( ) *, and RFC 1738 form-style encoding that turns spaces into +. Decoding is equally careful: it handles percent sequences and reports clearly when a string contains a broken or invalid % sequence instead of throwing a cryptic error. For HTML it provides a full encode (escaping the five core characters plus every non-ASCII character to numeric entities), a minimal encode (just & < > " '), and decimal or hexadecimal numeric-entity output — and a robust decoder that understands named entities like ©, decimal entities like © and hexadecimal entities like © all at once, mixed together.
Beyond URL and HTML, the toolkit covers the other escapes developers reach for daily. It provides JSON escaping (and unescaping) so you can safely embed a string in a JSON document, XML escaping, JavaScript string escaping (to \n, \t, \xNN and \uNNNN), CSS escaping for identifiers, and SQL escaping that doubles single quotes to prevent the classic injection mistake. It also includes Base64 encoding and decoding that is fully UTF-8 safe (so emoji and non-Latin scripts survive the round trip), and Unicode tools that convert text to \uXXXX escapes and back, or list every character's U+ code point. A handy auto-detect button inspects your input, recognises whether it is URL-, HTML-, Base64- or Unicode-encoded, and decodes it with the right method — perfect when you have pasted something and are not sure what it is.
Real work is rarely a single string, so the tool scales. A batch mode processes a whole list line by line, transforming each independently — ideal for a column of values from a log or spreadsheet. You can upload a file (TXT, CSV, JSON, HTML, XML, JS, CSS and more) straight into the input and download the result as TXT, HTML, CSV or JSON. A live character-statistics panel shows the character count, word count, line count, byte size (UTF-8) and the number of non-ASCII characters, which is useful for length limits and payload sizing. And built-in validation flags broken percent-encoding, malformed HTML entities and other issues, explaining the problem rather than producing garbage.
Three developer power-features round it out. A URL parser takes any address and breaks it into its protocol, host, port, path, query and fragment, and lists every query parameter in a clean table — no more squinting at a long query string. A sandboxed HTML preview renders pasted markup safely in an isolated iframe with scripts disabled, so you can see what a fragment looks like without risk. And a searchable HTML entity reference puts the common named entities — arrows, currency symbols, punctuation, maths, copyright and trademark — one click away, with their decimal and hexadecimal codes ready to copy. Every result is copyable in one tap, an optional auto-copy puts the output on your clipboard automatically, and a local history keeps recent conversions in your browser to revisit or export.
Because the whole toolkit is plain JavaScript running on your own device, it is fast and instant, works offline once loaded, and is completely private — no text, URL, token or markup you paste is ever uploaded to a server, there is no sign-up, and nothing is tracked against you. That privacy matters: developers often need to encode or decode data that contains internal URLs, tokens or user content, and this tool guarantees none of it leaves your machine. Who is it for? Frontend and backend developers building and debugging web apps and APIs; security professionals inspecting encoded payloads; QA engineers and testers checking how systems handle special characters; system administrators massaging config and log data; and students learning how URL encoding, HTML entities and the various escape formats actually work. Whether you need a one-off encode or a full pipeline of transformations with preview and validation, this toolkit puts every web encoding format in one private, offline-capable place.
यह URL & HTML Entity Encoder/Decoder अब एक पूरा web encoding toolkit बन गया है — एक ही, निजी, browser-आधारित workspace जो हर उस text-रूपांतरण के लिए है जिससे किसी web developer, backend engineer, tester या security professional का सामना होता है। web पर text को लगातार किसी विशेष संदर्भ के लिए "सुरक्षित" बनाना पड़ता है। URL में space या ampersand को %20 या %26 बनना पड़ता है; HTML में less-than चिह्न को < बनना पड़ता है ताकि browser उसे tag की तरह न समझे; JSON value के अंदर quote escape करना पड़ता है; SQL query या JavaScript literal में embedded string के अपने नियम हैं। इन रूपांतरणों को सही करना — और सही ढंग से उल्टा करना — हाथ से मुश्किल व त्रुटि-प्रवण है, और गलत संदर्भ में करना bugs और यहाँ तक कि security holes का आम स्रोत है। यह टूल इन सबको तुरंत और सही ढंग से करता है, output live दिखाते हुए।
URLs के लिए यह सिर्फ़ एक नहीं, encoders का पूरा परिवार देता है: query values के लिए encodeURIComponent, पूरे पते के लिए encodeURI, सख़्त RFC 3986 encoding जो sub-delimiters ! ' ( ) * को भी escape करती है, और RFC 1738 form-style encoding जो spaces को + बनाती है। Decoding भी सावधान है: यह percent sequences संभालती है और जब कोई string टूटा या अमान्य % sequence रखती है तो स्पष्ट रूप से बताती है, cryptic error फेंकने के बजाय। HTML के लिए यह full encode (पाँच core characters और हर non-ASCII character को numeric entities में), minimal encode (सिर्फ़ & < > " '), और decimal या hexadecimal numeric-entity output देता है — और एक मज़बूत decoder जो © जैसे named, © जैसे decimal और © जैसे hexadecimal entities को एक साथ, मिश्रित रूप में समझता है।
URL और HTML से आगे, toolkit उन बाकी escapes को भी कवर करता है जो developers रोज़ इस्तेमाल करते हैं। यह JSON escaping (व unescaping), XML escaping, JavaScript string escaping (\n, \t, \xNN व \uNNNN में), identifiers के लिए CSS escaping, और SQL escaping देता है जो classic injection गलती रोकने के लिए single quotes को दोगुना करती है। इसमें पूरी तरह UTF-8-safe Base64 encode/decode (ताकि emoji व गैर-Latin scripts round trip में बचे रहें), और Unicode tools हैं जो text को \uXXXX escapes में व वापस बदलते हैं, या हर character का U+ code point दिखाते हैं। एक उपयोगी auto-detect बटन आपके input की जाँच करता है, पहचानता है कि यह URL-, HTML-, Base64- या Unicode-encoded है, और सही तरीके से decode करता है।
असल काम शायद ही एक string होता है, इसलिए टूल बड़े स्तर पर काम करता है। एक batch mode पूरी सूची को पंक्ति-दर-पंक्ति प्रोसेस करता है, हर एक को स्वतंत्र रूप से बदलते हुए — किसी log या spreadsheet के column के लिए बढ़िया। आप एक file upload (TXT, CSV, JSON, HTML, XML, JS, CSS और अधिक) सीधे input में कर सकते हैं और result को TXT, HTML, CSV या JSON के रूप में download कर सकते हैं। एक live character-statistics panel character, word, line count, byte size (UTF-8) और non-ASCII characters की संख्या दिखाता है, जो length limits व payload sizing के लिए उपयोगी है। और built-in validation टूटा percent-encoding, malformed HTML entities व अन्य समस्याएँ चिह्नित करता है, garbage बनाने के बजाय समस्या समझाता है।
तीन developer power-features इसे पूरा करते हैं। एक URL parser किसी भी पते को protocol, host, port, path, query व fragment में तोड़ता है, और हर query parameter को एक साफ़ table में सूचीबद्ध करता है। एक sandboxed HTML preview paste किए markup को एक अलग iframe में scripts बंद करके सुरक्षित रूप से render करता है। और एक searchable HTML entity reference आम named entities — arrows, currency symbols, punctuation, maths, copyright व trademark — को एक क्लिक दूर रखता है, उनके decimal व hexadecimal codes copy करने को तैयार। हर परिणाम एक tap में copyable है, एक वैकल्पिक auto-copy output को अपने आप clipboard पर डालता है, और एक local history हाल की conversions को browser में रखती है।
चूँकि पूरा toolkit आपके अपने device पर plain JavaScript है, यह तेज़ और तुरंत है, load होने पर offline काम करता है, और पूरी तरह निजी है — आपका paste किया कोई text, URL, token या markup कभी server पर upload नहीं होता, कोई sign-up नहीं, कुछ भी track नहीं होता। यह privacy मायने रखती है: developers को अक्सर ऐसा data encode/decode करना होता है जिसमें internal URLs, tokens या user content होता है, और यह टूल सुनिश्चित करता है कि उनमें से कुछ भी आपके machine से बाहर न जाए। यह किसके लिए है? web apps व APIs बनाते व debug करते frontend व backend developers; encoded payloads जाँचते security professionals; special characters का handling जाँचते QA engineers व testers; config व log data संभालते system administrators; और URL encoding, HTML entities व विभिन्न escape formats को समझते students।
| Format | Example input | Example output |
|---|---|---|
| encodeURIComponent | a b&c | a%20b%26c |
| encodeURI | https://x.com/a b | https://x.com/a%20b |
| RFC 1738 (form) | a b | a+b |
| HTML encode | <a>&" | <a>&" |
| HTML decimal | © | © |
| JSON escape | line"1\n | line\"1\\n |
| Base64 | Hi 👋 | SGkg8J+Riw== |
| Unicode | A | A |
This toolkit is 100% client-side. Every character you type or paste is processed by JavaScript in your own browser — nothing is sent to any server, there is no account, and your history is stored only in your browser's local storage. Clear it anytime; once loaded, the tool works with no internet connection.
% not followed by two hex digits). Fix or remove it; the tool points out invalid %.