Media and documents · Library

sharp

A fast Node.js library for resizing, cropping, compressing and converting images, often used on servers to make thumbnails and modern formats such as WebP and AVIF.

Images · Open source · updated

How it works

sharp wraps libvips, a C image library that processes pictures in small chunks, so it is quick and uses little memory even on large files. It reads JPEG, PNG, WebP, AVIF, GIF, TIFF and SVG, and can resize, crop, rotate according to camera EXIF data, blur, sharpen, composite watermarks, strip metadata and write modern formats, all through a chained API such as sharp(input).resize(800).webp().

It powers image optimisation in many tools, including Next.js when self-hosted, Astro and Gatsby. Prebuilt native binaries cover the common platforms, and it runs under Node, Bun and Deno, but it needs a server runtime: it does not run in the browser, and edge platforms such as Cloudflare Workers usually rely on their own image services instead.

sharp pricing

Open source

Free (Apache 2.0).

Approximate, checked September 2026.What the other tools cost

More in Media and documents

Images

All 14 Media and documents terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.