Home
Tools
Developer Utilities
Code Minifier
Developer Utilities

Code Minifier

Minify JS, TS, JSX, TSX, CSS, HTML, JSON, YAML, XML, SVG, GraphQL, and SQL

Processed locally in your browser.

Shrink code for production delivery

Removes comments and extra whitespace, and compresses where a real engine exists. This does not rewrite your algorithms — it makes the file smaller to download. Everything runs locally in your browser.

Compress with Terser — remove comments, whitespace, and shorten names.

JavaScript
0 characters · Paste, sample, or upload · max 5 MB
Output appears here after you minify

Frequently asked questions

Common questions about the Code Minifier.

What does the Code Minifier do?+

It shrinks code for production delivery by removing comments and extra whitespace and running real compressors where available. It does not rewrite your algorithms — it makes files smaller to download. Everything runs in your browser.

What languages does the Code Minifier support?+

JavaScript, TypeScript, JSX, TSX, CSS, HTML, JSON, YAML, XML, SVG, GraphQL, and SQL. Choose a language, paste or upload your file, then minify.

What happens when I minify TypeScript, JSX, or TSX?+

Types and JSX are compiled away into modern JavaScript, then minified with Terser. The download is minified.js. Keep your original source for editing — use the output for production.

Is minification done with real minifiers or just whitespace removal?+

Real engines where it matters: Terser for JavaScript, Sucrase + Terser for TypeScript/JSX/TSX, CSSO for CSS, JSON/YAML parse-and-dump, GraphQL ignored-character stripping, SQL comment/whitespace compaction, and browser DOM cleanup for HTML/XML/SVG.

Does my code leave my device?+

No. The Code Minifier runs fully in your browser. Nothing is uploaded to ToolsArk servers for minification.

Why did minification fail?+

Usually the input has a syntax error the minifier cannot parse. Fix the reported error, confirm the correct language is selected, and try again.

Tags

minifyjavascripttypescriptcsshtmljsonyamlgraphqlsqlcompress

Continue with these utilities

People frequently use these utilities together.

  • Code Beautifier

    Developer Utilities

    Beautify JS, TS, JSX, TSX, JSON, CSS, SCSS, Less, HTML, Vue, Markdown, YAML, XML, SVG, GraphQL, and SQL

    Open Utility →
  • Hash Generator

    Developer Utilities

    Generate MD5 and SHA hashes from text locally

    Open Utility →
  • Regex Tester

    Developer Utilities

    Test regular expressions with live match highlighting

    Open Utility →
  • UUID Generator

    Developer Utilities

    Generate unique UUIDs instantly

    Open Utility →
  • Password Generator

    Developer Utilities

    Generate strong, random passwords

    Open Utility →
  • JWT Decoder

    Developer Utilities

    Decode JWT headers and payloads locally

    Open Utility →
ToolsArkToolsArk

Free browser-based utilities for everyday tasks. No sign-up required. Privacy-first.

Product

  • All Tools
  • Categories
  • FAQ

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

© 2026 ToolsArk. All rights reserved.

Privacy·Terms·Disclaimer

ToolsArkToolsArk