Code Tools StudioCode Tools Studio
All Tools
Tools
JSON FormatterCode MinifierRegex TesterPDF MergePDF SplitPDF to TextImage ConverterJSON Schema GeneratorText Case ConverterBase64 Encoder/DecoderURL Encoder/DecoderHash GeneratorUUID GeneratorColor ConverterTimestamp ConverterLorem Ipsum GeneratorJWT DecoderText Diff CheckerMarkdown Previewer

Command Palette

Search tools and actions

Code Minifier

Minify or format JavaScript, TypeScript, CSS, HTML and JSON.

1
2
3
4
5
6
7
8
Minified
1

About Code Minifier

The Code Minifier shrinks JavaScript, TypeScript, CSS, HTML, and JSON down to their smallest form, or reformats already-minified code back into something readable. It shows exactly how many bytes you saved so you can confirm the change is worth shipping.

How to use it

  1. Choose the source language from the dropdown.
  2. Paste your code into the left editor.
  3. Switch between Minify and Format using the tabs.
  4. Check the size comparison bar for the percentage and byte savings.
  5. Copy or download the processed output.

Common use cases

  • Shrinking a script or stylesheet before shipping it to production
  • Pretty-printing someone else's minified vendor code so you can actually read it
  • Preparing a compact code snippet to paste somewhere with a size limit

FAQ

Does minifying change how the code behaves?

No. Minification only removes whitespace, comments, and (for JS) shortens identifiers where safe; it produces functionally equivalent, smaller output.

Which languages are supported?

JavaScript, TypeScript, CSS, HTML, and JSON, selectable from the language dropdown.

Can I use this as a code beautifier instead of a minifier?

Yes — switch to the Format tab to turn minified or compact code back into indented, readable code; Minify does the reverse.

Related tools

JSON FormatterText Diff Checker
Code Tools Studio - 19 privacy-first tools for everyday developer tasks | Product Hunt
Files auto-deleted after 1 hour TLS 1.3 encrypted 99.9% uptime
PrivacyTermsBlog

© 2026 Code Tools Studio. All rights reserved.