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 tool

CSS Formatter

Format and beautify CSS with consistent indentation and spacing.

Open tool

HTML Formatter

Format and beautify HTML with consistent indentation and structure.

Open tool

PHP Formatter

Format and beautify PHP with consistent indentation and style.

Open tool

Ruby Formatter

Reindent Ruby code by its def/class/if/end block structure.

Open tool

TOML Formatter

Format and normalize TOML by parsing and re-serializing it.

Open tool

Python Formatter

Normalize Python whitespace: tabs, trailing spaces, and blank lines.

Open tool

Java Formatter

Reindent Java code by its brace nesting depth.

Open tool

C Formatter

Reindent C code by its brace nesting depth.

Open tool

Go Formatter

Reindent Go code by its brace nesting depth.

Open tool

Rust Formatter

Reindent Rust code by its brace nesting depth.

Open tool

SQL Formatter

Reflow SQL into indented, clause-per-line formatting with keyword casing.

Open tool

JavaScript Minifier

Shrink JavaScript by removing whitespace and shortening names, powered by Terser.

Open tool

CSS Minifier

Shrink CSS by removing whitespace and merging rules, powered by csso.

Open tool

HTML Minifier

Shrink HTML by collapsing whitespace and stripping comments, powered by html-minifier-terser.

Open tool

Code Minifier

Minify JavaScript, CSS, HTML, or JSON from a single tool by picking a language.

Open tool

CoffeeScript Compiler

Compile CoffeeScript to plain JavaScript using the official compiler.

Open tool

TypeScript Compiler

Compile TypeScript to plain JavaScript using the official TypeScript compiler.

Open tool

Sass Compiler

Compile SCSS to plain CSS using Dart Sass, the official Sass implementation.

Open tool

LESS Compiler

Compile LESS to plain CSS using the official less.js compiler.

Open tool

Pug Compiler

Compile Pug templates to plain HTML using the official Pug compiler.

Open tool

JavaScript Validator

Check whether JavaScript is syntactically valid and see the exact error location.

Open tool

CSS Validator

Check whether CSS is syntactically valid and see the exact error location.

Open tool

HTML Validator

Check whether HTML is well-formed and see the exact error location.

Open tool

JavaScript Obfuscator

Obfuscate JavaScript to make it harder to read, using javascript-obfuscator.

Open tool

SQL to NoSQL Query Converter

Convert a simple SQL SELECT statement into an equivalent MongoDB-style find() query.

Open tool

HTML to JSX Converter

Convert pasted HTML markup into equivalent JSX, with class/for renamed and attributes camelCased.

Open tool

JSX to HTML Converter

Convert simple JSX markup into plain HTML, with className/htmlFor renamed and style objects inlined.

Open tool

CSS to Tailwind Converter

Convert plain CSS rules into their closest Tailwind CSS utility class equivalents.

Open tool

Tailwind to CSS Converter

Convert a space-separated list of Tailwind utility classes into equivalent plain CSS declarations.

Open tool

CSS Variable Extractor

Extract every CSS custom property (--name: value;) from a stylesheet into a clean, deduplicated list.

Open tool

SCSS Compiler

Compile a lightweight SCSS subset (nesting, &, variables, comments) to plain CSS with no dependency.

Open tool