CropKB

Resize Image by Pixels, cm, mm, or Inches

px · cm · mm · in

Convert physical cm/mm/inch measurements into exact pixel dimensions, embed real DPI headers, and optionally cap file size in KB.

Output: 1200 × 1200 px @ 300 DPI
Choose Images

or drag & drop here · Ctrl+V to paste

JPG, PNG, WebP, HEIC (iPhone) · Processed privately in your browser (zero uploads)

Ready · Files stay on your device.

Quick Summary & Specifications

Last updated: 2026-11-25

Resize any JPG, PNG, WebP, or HEIC image to exact pixels, centimeters, millimeters, or inches at 72, 96, 150, 300, or 600 DPI directly in your browser. Supports aspect-ratio locking, batch resizing, genuine DPI metadata headers, and optional target KB compression.

Specification Details
Supported Units Pixels (px), Centimeters (cm), Millimeters (mm), Inches (in)
Print DPI Options 72, 96, 150, 300, or 600 DPI (real JFIF & PNG pHYs headers written)
Fit Modes Keep Aspect Ratio, Center Crop (Exact Box), or Exact Stretch
Supported Inputs JPG, PNG, WebP, HEIC (iPhone), BMP, GIF
Privacy 100% in-browser — photos never leave your device

How to Use Resize Image by Pixels, cm, mm, or Inches

  1. Choose your unit (px, cm, mm, or in) and DPI (300 DPI is standard for printing and forms).
  2. Enter your target width and height, and choose whether to lock aspect ratio or center-crop to exact dimensions.
  3. Drop one or more images (including iPhone HEIC photos) and download the resized files with embedded DPI headers.

Local Privacy Guarantee: All resizing, MozJPEG compression, DPI metadata patching, and EXIF stripping execute locally in your browser. CropKB does not upload, log, or store any user image.

Frequently Asked Questions

How are centimeters or inches converted into pixels?

Pixels equal physical inches multiplied by DPI (for centimeters: cm ÷ 2.54 × DPI; for millimeters: mm ÷ 25.4 × DPI). For example, 3.5 × 4.5 cm at 300 DPI outputs an exact 413 × 531 px file.

Does resizing in cm or inches also write the DPI into the file?

Yes. For JPEG and PNG outputs, CropKB patches the binary JFIF APP0 or PNG pHYs header so print shops, Word, Photoshop, and Windows/macOS read the exact physical cm/inch size.

Can I resize dimensions and keep the file under 50KB or 100KB at the same time?

Yes. Enter a number in the optional Max KB field and CropKB will resize to your exact dimensions and binary-search MozJPEG quality to stay under your KB limit in one pass.

Related Tools