4629 · Developer Tools · v1.0.0

Minify

Less representation. The same intent.

Minify JavaScript, CSS, HTML, JSON or SVG using deterministic tooling and measure actual UTF-8 byte savings.

Loose strands of glowing code-like light compressed between two glass plates into a compact cyan bar
AI-generated conceptual artwork; not an application screenshot.
Processed locally in your browser

Text-only workspace. Never executes input. General limit: 200,000 UTF-16 units per editor; some operations have tighter limits.

Private session · history disabled

Opt in to store up to five recent text transformations on this device. Never stored on an account or synchronized. Files are never included. Disable history stops new saves; Clear history deletes saved items.

How to use Minify

Paste input, select a command and its options, then run the transformation. Review diagnostics before copying or downloading the result. Input is not executed.

JavaScript compression and identifier mangling are disabled; comments and unnecessary layout are removed by a parser. HTML/SVG whitespace collapse and embedded script/style minification are disabled to protect context-dependent text. Review the diff and test the result in its original application. Savings are uncompressed UTF-8 bytes, not measured gzip or Brotli savings.

Privacy and boundaries

Editor contents stay in your browser. Transformations run in a disposable worker and are never sent to a formatting or AI service. History starts disabled; enabling it writes text to local browser storage only. Clearing that history removes this tool’s saved entries, not data saved by other applications. The surrounding website may load its normal navigation and analytics, but the utility workspace is excluded from content-interaction capture.

Use the labeled operation selector for the available capabilities. Keyboard users can reach every control with Tab; Ctrl or Command plus K opens the command palette. Copy requires clipboard permission. Download creates a local text file. Clear removes the current workspace; it does not automatically delete an opted-in history. Inputs and outputs are always rendered as text, never as a runnable preview.

What is minification?

Minification removes unnecessary source representation. It is distinct from transport compression and must respect the grammar and whitespace rules of the input format.

FIELD GUIDE · PURPOSE AND BOUNDARIES

Minify: practical use and context

Minify is a conservative source-compaction workspace for developers and technical publishers. It removes supported representational overhead and reports measured uncompressed byte differences, without claiming to optimize an entire website.

↑ Back to the application
Loose strands of glowing code-like light compressed between two glass plates into a compact cyan bar
Application artwork reused from its publication image family. The interactive interface is above.

A review-first minification workflow

Choose the actual source format and paste a complete valid sample. Keep the readable original as your maintained source. Run the transformation, review warnings and inspect the output before copying or downloading. Minified output should be a derived artifact, not the only remaining version of a program you may need to debug.

Try the included square function as JavaScript. Compare the compact result with the original in Diff Lab. Then run your own program tests before using a transformed production file. The app does not execute your source to prove equivalent behavior, inspect imported dependencies, or know whether another script depends on a particular comment or serialization pattern.

What the savings number means

The size comparison uses UTF-8 bytes before transport compression. It is not a measured download-time improvement, a page-speed score, or a prediction of gzip and Brotli output. Network latency, caching, transfer compression and browser execution also affect delivery. Keep these measurements separate when writing a performance report; do not turn a smaller source file into an unsupported conversion or ranking claim.

Conservative boundaries and failure recovery

JavaScript identifier mangling and logical compression are disabled. HTML and SVG whitespace collapsing and embedded script/style minification are also disabled. These boundaries protect context-dependent text but mean a file may shrink less than with an aggressive build pipeline. SVG text and attributes still need to be reviewed in their actual rendering context.

If parsing fails, check the selected grammar and whether the snippet is complete. Do not pass TypeScript through a JavaScript-only setting and assume type syntax will be removed. Preserve license notices where your dependencies require them. For reversible human review, format an original copy with Tidy Dog; formatting a compacted file cannot recover comments that were removed.