Code Formatters
Format and beautify code in 12+ languages: Java, Python, C/C++, Ruby, PHP, Rust, Go, Kotlin, TOML, Nginx, Apache, and .env files. Regex-based formatting — all in your browser.
22 tools — All free, no sign-up, runs entirely in your browser.
Java Formatter
Format and beautify Java code with configurable indent and brace style.
Python Formatter
Format Python code: fix indentation, normalize spacing, trim trailing whitespace.
C/C++ Formatter
Format C and C++ code with K&R, Allman, or GNU brace styles.
Ruby Formatter
Format Ruby code with proper 2-space indent and block alignment.
PHP Formatter
Format PHP code with PSR-12 or Allman brace style.
Rust Formatter
Format Rust code mimicking rustfmt style conventions.
Go Formatter
Format Go code with tabs, mimicking gofmt style.
Kotlin Formatter
Format Kotlin code with proper indentation and spacing.
TOML Formatter
Format TOML files with consistent spacing and section organization.
.env Formatter
Format .env files: sort keys, quote values, detect duplicates.
Nginx Config Formatter
Format Nginx configuration with proper block indentation.
Apache Config Formatter
Format Apache .htaccess and httpd.conf with proper directive indentation.
Elm Formatter
Format Elm source code with proper indentation and style.
Haskell Formatter
Format Haskell source code following standard conventions.
Lua Formatter
Format Lua source code with consistent indentation.
Perl Formatter
Format Perl source code with proper indentation.
SQL Beautifier
Beautify and format SQL queries for better readability.
SQL Minifier
Minify SQL queries by removing unnecessary whitespace.
SQL Diff
Compare two SQL scripts and highlight the differences.
Svelte Formatter
Format Svelte component files with proper indentation.
Vue Formatter
Format Vue single-file component code.
XML Minifier
Minify XML by removing whitespace and formatting.