Code Formatters

ArrayKit's Code Formatters bundle the everyday jobs that keep code and config clean, all in one place and all in your browser. Beautify or minify CSS, SCSS and LESS, JavaScript, TypeScript and JSX, HTML, XML, SQL across six dialects, GraphQL and Dockerfiles with the CSS, JS, HTML and SQL Formatters. Convert between formats with YAML to JSON, the TOML Formatter, HTML to Markdown and Glob to Regex, and tidy API contracts with the OpenAPI / Swagger Formatter. Round out the set with the Regex Tester, Text Diff, CSS Color and Unit Converters, Contrast Checker, Mermaid Diagram Renderer, SVG Optimizer, Markdown Preview and MongoDB query, aggregation and schema tools. Built for frontend, backend and DevOps engineers, everything is processed locally on your device and nothing is uploaded.

Frequently asked questions

What can I do with ArrayKit's Code Formatters?
You can beautify or minify code (CSS, SCSS, LESS, JavaScript, TypeScript, JSX, HTML, XML, SQL, GraphQL and Dockerfiles), convert between formats such as YAML to JSON, TOML to JSON, HTML to Markdown and glob to regex, validate XML, OpenAPI and TOML, test regular expressions, compare text, check colour contrast, and render Mermaid diagrams — all in one category.
Are these Code Formatters safe to use with private code?
Yes. Every tool runs entirely in your browser, so the code, queries and config you paste are processed locally and never leave your device. Nothing is uploaded to a server, which makes them safe for proprietary or sensitive source files.
Which languages and formats do the Code Formatters support?
The category spans CSS/SCSS/LESS, JavaScript, TypeScript and JSX, HTML, XML, SQL across MySQL, PostgreSQL, SQL Server, SQLite, BigQuery and Oracle, GraphQL, Dockerfiles and MongoDB. It also converts YAML, JSON, TOML, HTML, Markdown and OpenAPI/Swagger specs, and optimises SVG.
Can I both beautify and minify my code here?
Yes. The CSS, JS, HTML, XML and GraphQL Formatters all support beautifying for readability and minifying for production, and several tools add extras like sorting properties, removing duplicates or validating syntax.
Do the Code Formatters do more than format code?
Yes. Alongside formatting they convert data between formats (YAML/JSON, TOML/JSON, HTML/Markdown, glob/regex, CSS units and colours), test regular expressions, diff two texts, check WCAG colour contrast, render Mermaid diagrams and inspect MongoDB documents.
Do I need to install anything to use the Code Formatters?
No installation is required. The tools run in your browser as soon as the page loads and all processing happens locally on your device, so you can format, convert and validate right away.