Glossary

Plain-English SEO definitions, sourced from Google's documentation.

Minification

The process of removing unnecessary characters from code such as comments and whitespace to reduce file size without changing behaviour.

Definition

Minification is the process of removing characters from source code — including comments, whitespace and redundant declarations — that are not needed for the browser to run it. It reduces the size of HTML, CSS and JavaScript files without changing how they behave.

Minification typically strips developer comments, collapses whitespace such as tabs and spaces, and consolidates redundant code into more compact forms. It is usually automated as part of a build process, often by a bundler, so that developers keep readable source code while production assets are smaller. Minification is separate from, and complementary to, server compression such as gzip or Brotli — applying both yields a cumulative reduction in transferred bytes. Source maps are commonly generated alongside minified files to support debugging.

Examples

  • Build pipeline

    A bundler minifies a site's JavaScript before deployment, reducing a 516-character snippet to around 204 characters by removing comments and whitespace.

  • Combined with compression

    A team minifies its CSS and also enables Brotli on the server, so the file is both smaller and compressed in transit.

Sources

Related terms

Where QueryCatch uses this

Last updated: 16/05/2026

Minification — Definition & Example | QueryCatch | QueryCatch SEO Glossary