Tarayıcınız güncel değil

Bu siteyi görüntülemek için tarayıcınızın veya cihazınızın işletim sisteminin güncellenmesi gerekiyor.

Your browser is out of date. Please update iOS or your browser to view this site.

Skip to main content
Gizke.com
Blog

Code Formatter & Minifier

Runs on your device. Nothing is sent.

Input

Result

Beautify JavaScript, TypeScript, CSS, SCSS, HTML, Markdown, YAML and SQL, or minify JS and CSS - with Prettier, in your browser. Your code is never uploaded.

Turn minified or messy code into something readable, or shrink it for production. Paste JavaScript, TypeScript, CSS, SCSS, HTML, Markdown, YAML or SQL - the language is detected as you paste - pick tabs or 2 or 4 spaces, and press Format. JavaScript and CSS can also be minified, with the size saving shown. Formatting uses Prettier, the formatter most editors run, so the result matches what your team's tools produce; SQL is laid out by sql-formatter in the dialect you choose. The formatters load only when you press a button, and your code never leaves the browser.

Frequently asked questions

Is my code uploaded?
No. Prettier, sql-formatter, Terser and CSSO run inside your browser. The page sends nothing anywhere, so it's safe for private repositories, keys left in config files or customer data in SQL.
Why does it say there's an error?
The formatter has to understand the code before it can lay it out again, so a missing bracket or a stray comma stops it. The message shows the line and column of the first problem. Check that the right language is selected: JSX belongs under JavaScript, and type annotations under TypeScript.
Will formatting change what my code does?
No. Formatting only changes spaces, line breaks, quotes and optional semicolons. Minifying goes further - it shortens local names and drops comments and dead code - but keeps the behaviour. Keep the original for editing and ship the minified copy.
Which SQL dialect should I pick?
The one your database uses: PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (Transact-SQL), Oracle (PL/SQL), BigQuery or Snowflake. Plain SQL works for most queries; a dialect matters for things like backtick-quoted names in MySQL or $1 parameters in PostgreSQL.

Share this tool

BlogAboutContactTerms of UsePrivacy Policy