RYU Tools

HTML Minifier

Safely shrink HTML by removing comments and redundant whitespace.

0 bytes

Minified HTML

The minified markup will appear here.

The minifier only removes comments and whitespace that HTML collapses anyway. The raw contents of pre, textarea, script and style are kept exactly as written, and no whitespace that affects how the page renders is removed.

How to use HTML Minifier

  1. 1Paste the HTML you want to shrink.
  2. 2Press Minify to produce the smaller markup.
  3. 3The size before, the size after and the percentage saved are shown above the result.
  4. 4Copy Result copies the minified HTML, and Clear empties both fields.

Frequently asked questions

Will minifying break my HTML?

No. The minifier is deliberately conservative: it keeps the raw contents of pre, textarea, script and style exactly as written and never removes whitespace that affects rendering.

Why is the saving small sometimes?

If the markup was already compact there is little whitespace or no comments to remove, so there is almost nothing to gain.

Related tools

More developer tools you might find useful.

JSON Formatter

Format or minify JSON with 2 or 4 space indentation and clear error positions.

Open tool

JSON Validator

Check whether JSON is valid and see the exact line and column of any error.

Open tool

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text, with full Unicode support.

Open tool

UUID Generator

Generate cryptographically secure version 4 UUIDs, one or a hundred at a time.

Open tool

JWT Decoder

Read the header and payload of a JWT and check its expiry - decoding only.

Open tool

Regex Tester

Test a regular expression against your text and see every match and capture group.

Open tool

CSS Gradient Generator

Build linear or radial CSS gradients with a live preview and ready-to-use code.

Open tool

CSS Box Shadow Generator

Design a box shadow visually and copy the finished CSS.

Open tool

URL Encoder / Decoder

Encode or decode URLs and query values, including Hebrew and special characters.

Open tool

Hash Generator

Create SHA-1, SHA-256, SHA-384 or SHA-512 hashes of any text.

Open tool

Timestamp Converter

Convert Unix timestamps to readable dates, in seconds or milliseconds.

Open tool

JSON to CSV Converter

Turn an array of JSON objects into a CSV table with a header row.

Open tool

CSV to JSON Converter

Convert CSV rows into an array of JSON objects, using the first row as keys.

Open tool

SQL Formatter

Format and indent SQL queries with keywords highlighted.

Open tool

HTML Entity Encoder / Decoder

Escape text into HTML entities or decode named and numeric entities.

Open tool

JavaScript Minifier

Shrink JavaScript with Terser and see exactly how much smaller it got.

Open tool

CSS Minifier

Shrink a stylesheet safely and see the bytes you saved.

Open tool

Markdown Previewer

Write Markdown and watch it render live, with tables and code blocks.

Open tool

Cron Expression Generator

Build a 5-field cron expression and read what it means in plain English.

Open tool

RYU Tools keeps your work on your own device: no advertising, no third-party tracking and no account. The site only uses the small amount of browser storage needed to work - including remembering this acknowledgement and any accessibility settings you choose. Details are in our Privacy Policy.

Read the policy