Paste JavaScript and get clean, consistently indented code. Strings, comments, regular expressions and template literals stay exactly as written — formatting is done in your browser, nothing is uploaded.
Paste any JavaScript — a single function, a snippet from a code review or an entire file — and this formatter rewrites the whitespace so the structure becomes readable. Nested blocks are indented, statements start on their own lines, and operators, commas and parentheses get consistent spacing. Strings, comments, regular expressions and template literals are copied through byte for byte, so nothing inside them is ever altered. Choose two spaces, four spaces or tabs, then copy the result or download it as a .js file. An unbalanced bracket, an unterminated string or an unclosed comment is reported with its line number instead of being silently reformatted. Everything runs in your browser: the code you paste is never uploaded.
Free online utility tools. No signup. No tracking.
Nutzung auf eigene Gefahr. Diese Tools werden kostenlos und ohne Gewährleistung für Richtigkeit, Vollständigkeit, Verfügbarkeit oder Eignung für einen bestimmten Zweck bereitgestellt; Ergebnisse sind keine professionelle Beratung. Die gesetzliche Haftung — insbesondere für Vorsatz, grobe Fahrlässigkeit sowie für Verletzungen von Leben, Körper oder Gesundheit — bleibt unberührt.
Use at your own risk. These tools are provided free of charge without any warranty of accuracy, completeness, availability or fitness for a particular purpose; results are not professional advice. Statutory liability — in particular for intent, gross negligence and injury to life, body or health — remains unaffected.
Uso bajo su propio riesgo. Estas herramientas se ofrecen de forma gratuita y sin garantía de exactitud, integridad, disponibilidad o idoneidad para un fin determinado; los resultados no constituyen asesoramiento profesional. La responsabilidad legal — en particular por dolo, negligencia grave y daños a la vida, el cuerpo o la salud — no se ve afectada.
Utilisation à vos propres risques. Ces outils sont fournis gratuitement, sans garantie d’exactitude, d’exhaustivité, de disponibilité ou d’adaptation à un usage particulier ; les résultats ne constituent pas un conseil professionnel. La responsabilité légale — notamment en cas de dol, de négligence grave et d’atteinte à la vie, au corps ou à la santé — reste inchangée.