श्रेणी: डेवलपर टूल

JavaScript minifier online

हमारा अपना विचारकोई टूल नहीं मिला?

छोटे script से comments और अतिरिक्त whitespace हटाएं

छोटे JavaScript snippet को locally minify करें: comments और extra whitespace हटाएं, strings, templates और regex content सुरक्षित रखें.

यह स्पेस और टिप्पणियाँ हटाने वाला टूल है, न कि पूर्ण पार्सर या AST-आधारित मिनिफायर। यह सेमीकोलन-इंसर्शन विश्लेषण नहीं करता, इसलिए नई लाइनें हटाने से ऐसे कोड में शायद ही कभी व्यवहार बदल सकता है जो स्वचालित सेमीकोलन इंसर्शन पर निर्भर करता है। इसे छोटे, सरल स्निपेट्स के लिए उपयोग करें, प्रोडक्शन बंडलों के लिए नहीं।

मूल आकार186मिनिफ़ाइड आकार104कमी44%
मिनिफ़ाइड आउटपुट
function greet(name) {
var message ="Hello, "+ name +"!";
return message;
}
console.log(greet("world"));

इस पेज पर सब कुछ आपके ब्राउज़र में संसाधित होता है। कुछ भी अपलोड नहीं होता।

यह टूल क्या करता है

छोटे और सरल scripts के लिए हल्का minifier. यह // और /* */ comments हटाता है और extra whitespace घटाता है, जबकि strings, template literals और regular expressions के अंदर का text सुरक्षित रखता है. यह Terser जैसा AST compressor नहीं है और variables rename, dead code removal, production bundles optimize या automatic semicolon insertion analysis नहीं करता. Paste किया गया JavaScript, settings और minified result browser में रहते हैं और LocalTools पर upload नहीं होते.

इस्तेमाल कैसे करें

  1. छोटा JavaScript snippet paste या type करें.
  2. Minified output और size comparison देखें.
  3. Result copy करें और publish करने से पहले test करें.

निजता

यह टूल पूरी तरह आपके ब्राउज़र में चलता है। आपका डेटा कभी अपलोड, सेव या साझा नहीं होता — टैब बंद करते ही वह हट जाता है।

अक्सर पूछे जाने वाले सवाल

छोटे JavaScript snippet को online कैसे minify करें?
छोटा JavaScript snippet paste या type करें. Minified output और size comparison देखें.
क्या यह tool strings, template literals या regular expressions के अंदर text बदलता है?
नहीं. यह strings, template literals और regular expressions के अंदर का content सुरक्षित रखता है.
क्या यह JavaScript minifier मेरा code upload करता है?
नहीं. Paste किया गया JavaScript, settings और minified result browser में रहते हैं और LocalTools पर upload नहीं होते.
इस lite JavaScript minifier के लिए किस तरह का code अच्छा fit नहीं है?
File uploads, batch minification, accounts, server processing, crawling, third-party APIs, AST compression, variable renaming, dead-code removal, production bundling, obfuscation, deobfuscation या automatic semicolon-insertion analysis समर्थित नहीं हैं.
यह Terser से कैसे अलग है?
Terser पूरा compressor है. यह tool हल्का है और AST optimization, variable renaming या dead-code removal नहीं करता.