Code Tools
A set of browser-based code utilities for formatting, minifying, compiling, validating, and obfuscating JavaScript, CSS, HTML, TypeScript, Sass, LESS, Pug, CoffeeScript, PHP, Ruby, TOML, and more. Everything runs locally in your browser, so nothing you paste is ever sent to a server.
JavaScript Formatter
Format and beautify JavaScript with consistent indentation and style.
Open toolCSS Formatter
Format and beautify CSS with consistent indentation and spacing.
Open toolHTML Formatter
Format and beautify HTML with consistent indentation and structure.
Open toolPHP Formatter
Format and beautify PHP with consistent indentation and style.
Open toolRuby Formatter
Reindent Ruby code by its def/class/if/end block structure.
Open toolTOML Formatter
Format and normalize TOML by parsing and re-serializing it.
Open toolPython Formatter
Normalize Python whitespace: tabs, trailing spaces, and blank lines.
Open toolJava Formatter
Reindent Java code by its brace nesting depth.
Open toolC Formatter
Reindent C code by its brace nesting depth.
Open toolGo Formatter
Reindent Go code by its brace nesting depth.
Open toolRust Formatter
Reindent Rust code by its brace nesting depth.
Open toolSQL Formatter
Reflow SQL into indented, clause-per-line formatting with keyword casing.
Open toolJavaScript Minifier
Shrink JavaScript by removing whitespace and shortening names, powered by Terser.
Open toolCSS Minifier
Shrink CSS by removing whitespace and merging rules, powered by csso.
Open toolHTML Minifier
Shrink HTML by collapsing whitespace and stripping comments, powered by html-minifier-terser.
Open toolCode Minifier
Minify JavaScript, CSS, HTML, or JSON from a single tool by picking a language.
Open toolCoffeeScript Compiler
Compile CoffeeScript to plain JavaScript using the official compiler.
Open toolTypeScript Compiler
Compile TypeScript to plain JavaScript using the official TypeScript compiler.
Open toolSass Compiler
Compile SCSS to plain CSS using Dart Sass, the official Sass implementation.
Open toolLESS Compiler
Compile LESS to plain CSS using the official less.js compiler.
Open toolPug Compiler
Compile Pug templates to plain HTML using the official Pug compiler.
Open toolJavaScript Validator
Check whether JavaScript is syntactically valid and see the exact error location.
Open toolCSS Validator
Check whether CSS is syntactically valid and see the exact error location.
Open toolHTML Validator
Check whether HTML is well-formed and see the exact error location.
Open toolJavaScript Obfuscator
Obfuscate JavaScript to make it harder to read, using javascript-obfuscator.
Open toolSQL to NoSQL Query Converter
Convert a simple SQL SELECT statement into an equivalent MongoDB-style find() query.
Open toolHTML to JSX Converter
Convert pasted HTML markup into equivalent JSX, with class/for renamed and attributes camelCased.
Open toolJSX to HTML Converter
Convert simple JSX markup into plain HTML, with className/htmlFor renamed and style objects inlined.
Open toolCSS to Tailwind Converter
Convert plain CSS rules into their closest Tailwind CSS utility class equivalents.
Open toolTailwind to CSS Converter
Convert a space-separated list of Tailwind utility classes into equivalent plain CSS declarations.
Open toolCSS Variable Extractor
Extract every CSS custom property (--name: value;) from a stylesheet into a clean, deduplicated list.
Open toolSCSS Compiler
Compile a lightweight SCSS subset (nesting, &, variables, comments) to plain CSS with no dependency.
Open tool