DT
Dan's Tools
Web Dev
Conversion
Encoders / Decoders
Formatters
Internet
English
Afrikaans
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Bengali
Bosnian
Bulgarian
Catalan
Chinese (Simplified)
Chinese (Traditional)
Croatian
Czech
Danish
Dari
Dutch
English
Estonian
Farsi (Persian)
Filipino Tagalog
Finnish
French
French (Canada)
Georgian
German
Greek
Gujarati
Haitian Creole
Hausa
Hebrew
Hindi
Hungarian
Icelandic
Indonesian
Italian
Japanese
Kannada
Kazakh
Korean
Latvian
Lithuanian
Macedonian
Malay
Malayalam
Maltese
Mongolian
Norwegian
Persian
Pashto
Polish
Portuguese
Romanian
Russian
Serbian
Sinhala
Slovak
Slovenian
Somali
Spanish
Spanish (Mexico)
Swahili
Swedish
Tagalog
Tamil
Telugu
Thai
Turkish
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
(追記) (追記ここまで)

Javascript Viewer, Beautifier and Formatter, Editor

Related Tools

(追記) (追記ここまで)
(追記) (追記ここまで)

Options:

HTML <style>, <script> formatting:

Enter your messy, minified, or obfuscated Javascript (JS) into the field above to have it cleaned up and made pretty. The editor above also contains helpful line numbers and syntax highlighting. There are many option to tailor the beautifier to your personal formatting tastes.

When do you use Javascript Viewer, Beautifier and Formatter, Editor

Often when writing Javascript (JS) your indentation, spacing, and other formatting can become a bit disorganized. It is also common for multiple developers to work on a single project who have different formatting techniques. This tool is helpful for making the formatting of a file consistent. It is also common for Javascript (JS) to be minified or obfuscated. You can use this tool to make that code look pretty and readable so it is easier to edit.

Examples

The minified Javascript (JS) below:

function j(e)
{var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}

Becomes this beautified Javascript (JS):

function j(e)
 {
 var t = e.length,
 n = x.type(e);
 return x.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t> 0 && t - 1 in e)
 }

DansTools.com

© 2014 - 2026 Dan's Tools
Contact Us Privacy Policy

AltStyle によって変換されたページ (->オリジナル) /