Skip to content
← All tools

Code tools tools

Format, validate, and test code without running it.

CSS, HTML, and JavaScript formatters lay out code as inert text. The package.json validator checks manifest fields, the regex tools explain, test, and preview patterns, and the SemVer tester checks version ranges against a documented subset.

Nothing you paste is executed, no registry is contacted, and no package is installed.

Formatting, validation, and patterns

The CSS, HTML, and JavaScript formatters make minified or messy snippets readable for review, without running them. They are meant for quick inspection of code copied from a site, an email template, or a log. For a codebase, keep using the formatter your team runs in CI. The package.json validator catches the manifest mistakes that break installs and module loading, such as an invalid version or a wrong "type" value.

Regular expressions get three tools: the explainer describes a pattern token by token, the tester shows every match with its offsets and capture groups, and the replace tester previews a substitution before you run it across files. The SemVer range tester answers whether a version satisfies a range like ^1.2.3 or ~2.0.0.

Why nothing is executed

Code from unknown sources can be malicious. A formatted script is still a script, and running it in a browser console to see what it does is how many account takeovers start. These tools treat all input as text: markup is never rendered, scripts are never run, and regular expressions are checked for patterns that could freeze the page before they are tested.

That design also means limits: the formatters are structural rather than full parsers, and the regex tools refuse constructs such as backreferences and nested quantifiers. When a tool cannot handle something faithfully, it says so rather than producing something plausible but wrong.