Web layout uses the CSS pixel: 96 px per inch by specification. Use 300 DPI when matching physical print output.
Convert
Edit either field — values stay in sync for the selected DPI.
px = mm × (96 ÷ 25.4) · mm = px × (25.4 ÷ 96)
Reference lines
At 96 DPI (CSS): 37.7953 px
At 96 DPI (selected): 37.7953 px
PostScript points at selected DPI: 28.3465 pt(72 pt per inch at that scale)
Batch table
Enter multiple mm values — px updates for the current DPI. Copy as TSV for spreadsheets.
mm
px @ 96 DPI
3.7795
18.8976
37.7953
96.0000
Cheat sheet
1 inch = 25.4 mm (exact, by definition).
CSS px: 1 in = 96 px, so 1 mm ≈ 3.7795275591 px at the reference pixel density.
Retina / HiDPI screens do not change this formula for px in your stylesheets — device pixels are separate. Use this tool for design tokens, print CSS, and asset export dialogs that ask for DPI.
About this tool
The SynthQuery MM to PX Converter is a precision-focused, browser-side utility for turning millimetres into CSS pixels—and pixels back into millimetres—using the DPI (dots or pixels per inch) you actually care about. Print designers think in millimetres on paper; front-end developers think in CSS pixels on screens; export dialogs in Figma, Illustrator, InDesign, and Affinity often ask for both. This page unifies those worlds with an explicit formula, adjustable decimal display, presets for the CSS reference pixel density (96 px per inch), common print resolutions (72, 150, 300 DPI), and higher UI-scale densities (120, 144) you may see on Windows or HiDPI laptops. Nothing is uploaded: conversions run locally, settings persist in your browser, and you can copy a single-line summary or export a tab-separated batch table straight into Google Sheets or Excel. It sits in the Free tools series next to our PX to CM, PX to Inches, WebP, and HTML viewer utilities, with a clear path to the full SynthQuery catalogue at /tools when you need AI-assisted writing, detection, readability, or plagiarism workflows.
What this tool does
At the heart of every conversion is one constant: one international inch equals exactly 25.4 millimetres. Pixels enter the story only after you declare how many of them fit into that inch—your chosen DPI or PPI. The tool therefore implements the pair px = mm × (dpi ÷ 25.4) and mm = px × (25.4 ÷ dpi). When you pick 96 DPI, you align with the CSS Values and Units specification, which defines the reference pixel such that 1 in = 96 px for length conversion purposes in stylesheets. That is why 1 mm at 96 DPI is approximately 3.7795275591 px, not a round number: the millimetre is a rational fraction of an inch, while the CSS pixel is a convenient binary-friendly subdivision of the inch at the reference density.
The interface is deliberately bidirectional. You may type millimetres when a European packaging brief lists flange widths in mm, or type pixels when a developer handoff specifies a 16 px border radius and you must report the physical size on a 300 DPI print proof. A swap control exchanges the numeric fields when you realize you started in the wrong box. Decimal-place control only affects formatting and copy output; internal arithmetic stays in double precision until the last rounding step, which matters when you chain conversions across spreadsheets.
Preset buttons jump to everyday values: single millimetres for hairline checks, 25.4 mm for one inch, and ISO A4 sheet dimensions (210 × 297 mm) for layout sanity. The batch table lets you paste a column of measurements from a specification and receive the pixel column for the active DPI, then copy everything as TSV. A reference line translates the same millimetre length to CSS reference pixels (96 DPI) even when you are previewing another density—handy when you must explain to engineering how “10 mm in print” relates to “10 mm interpreted as CSS px,” which are different numbers.
We also show typographic points derived from the selected DPI using the classic 72 points per inch relationship (pt = px × 72 ÷ dpi) so conversations with print vendors stay consistent. This does not replace a full prepress pipeline; it gives you a defensible on-page calculator journalists, students, and indie developers can trust without installing desktop software.
Use cases
Product designers exporting icons from vector tools often receive millimetre dimensions for die-cut stickers or retail danglers but must implement shadows and padding in CSS pixels for the marketing site. They lock the export DPI to match production, convert critical mm tolerances to px, and drop the numbers into design tokens. Print-on-demand sellers reconcile millimetre bleed lines from PDF templates with pixel-based mockups in Shopify themes by running batch conversions for every trim and safe-zone line their supplier emailed.
Front-end engineers collaborating with European mechanical teams translate mounting-hole spacing from mm drawings into pixel offsets only when building simulator or configurator UIs that still use CSS for layout; the tool makes the DPI assumption explicit so nobody silently mixes 96 px per inch with a 300 DPI print preview. Technical writers preparing figures for PDF manuals set 300 DPI to estimate how many pixels wide a screenshot must be to print at a requested physical width without upscaling blur.
Educators teaching responsive design use the CSS 96 DPI preset alongside our HTML Online Viewer to show that logical pixels are not device hardware pixels; students can compare the same mm length at 96 versus 144 DPI to see how interpretation changes even when the phone’s hardware density is higher. Marketing analysts rebuilding ad creatives from European briefs convert column widths listed in mm into pixel grids for Meta or Google display specs when those platforms still think in px.
Accessibility and UX researchers sometimes annotate prototypes with physical minimum touch targets (often discussed near 9 mm) and need to communicate equivalent CSS pixels to developers who work in rem and px. The converter bridges that gap with a documented DPI rather than a vague “multiply by 3.78.” When you finish sizing, you can open the Word Counter for adjacent copy, run SynthRead for readability, or jump to the AI Detector if generative drafts need policy review.
How SynthQuery compares
Many online converters hard-code 96 DPI, hide the formula, or spam ads beside opaque results. Others target print only and confuse visitors who need CSS pixels. SynthQuery exposes DPI presets, custom DPI, formula text on the page, batch export, and contextual links to related converters (centimetres, inches) plus the broader /tools hub. The comparison table highlights practical differences—use it to decide when this page is the right bookmark versus a desktop calculator or a design tool’s internal unit switcher.
Aspect
SynthQuery
Typical alternatives
DPI transparency
Explicit presets (72–300) plus custom DPI; formula shown on-page; CSS 96 DPI called out.
Often a single hidden assumption or confusing toggle between “web” and “print” without numbers.
Direction & workflow
Bidirectional mm ↔ px editing, swap control, batch TSV copy, local settings persistence.
One-way calculators or tiny inputs without batch or export.
Privacy
Runs in the browser; measurements are not uploaded for conversion.
Some sites round-trip values through servers for analytics.
Ecosystem
Adjacent PX to CM, PX to Inches, WebP, HTML viewer, Word Counter, Grammar, full /tools suite.
Standalone pages with no path to writing or AI-assisted review tools.
Honest limits
Does not emulate device color profiles, bleed, or trim—pure math at the DPI you choose.
Occasionally imply WYSIWYG print accuracy without mentioning color or rendering pipelines.
How to use this tool effectively
First, identify which DPI matches your task. For CSS layout and most “how many pixels is this mm on the web?” questions, keep 96 DPI selected—that is the spec reference, independent of whether the user’s monitor is Retina. For raster exports intended for a 300 DPI plate, switch to 300 so pixel counts reflect print pixels, not CSS pixels. If a vendor email only says “150 LPI” or “print resolution,” confirm the rasterization DPI they used before you lock numbers into a contract.
Enter a millimetre value you can verify, such as 25.4 (one inch), and confirm the pixel readout matches your mental model at the chosen DPI. At 96 DPI you should see 96 px; at 300 DPI you should see 300 px. If those checks fail, re-read whether you accidentally typed in the pixel field first or left custom DPI blank.
Use quick presets for A4 dimensions when checking spreadsheet templates or slide masters. For a list from a spec, switch to the batch table, paste one mm value per row, and copy TSV into Sheets—sorting and charting stay intact. Adjust decimal places to match your style guide: packaging may want three decimals; UI tokens may want integers or quarter pixels.
When collaborating, paste the formula line from the tool into Slack or Jira so reviewers know which DPI produced the numbers. After mechanical sizing, open the Word Counter or Grammar Checker if accompanying copy ships in the same ticket. For full-funnel AI review, use the navigation link to /tools and pick detection, readability, or plagiarism as needed. Revisit the Free tools hub whenever SynthQuery adds utilities so your bookmark stays current.
Limitations and best practices
This tool performs linear scaling only. It does not account for printer margins that clip artwork, non-square pixels on legacy video hardware, or physical dot gain on newsprint. Color management, ICC profiles, and soft-proofing live outside pure mm–px arithmetic. CSS lengths can also use rem, em, vw, and other units—do not assume every px in a stylesheet maps to a physical millimetre on screen without knowing viewport and root font size.
HiDPI displays map multiple device pixels to one CSS pixel; choosing 144 DPI in the calculator models a logical scale factor, not a specific phone model. Always label which DPI you used when handing numbers to another team. If legal or medical dimensions are safety-critical, verify with calibrated measurement tools, not an online calculator alone. Rounding for display can hide tiny errors that accumulate across long spreadsheets—when in doubt, keep one extra decimal internally and round only at the presentation layer.
Review AI-assisted copy for disclosure policies when specs and UI strings were drafted quickly.
Frequently asked questions
Multiply millimetres by (DPI ÷ 25.4) to obtain pixels at that DPI, because one inch contains exactly 25.4 millimetres and DPI counts pixels per inch. The inverse is millimetres = pixels × (25.4 ÷ DPI). At 96 DPI—the CSS reference—one millimetre equals about 3.7795275591 pixels, which is why many people approximate “mm × 3.78” for web math but should still state the DPI when sharing numbers. If you change DPI, the pixel result changes even when the physical millimetre length stays the same, because pixels are not a fixed physical unit until you anchor them to an inch.
The CSS reference pixel is defined so that 1 inch equals 96 px when converting between absolute units in stylesheets, aligning older “px” usage with a predictable mapping independent of actual hardware dots. High-DPI screens then map several device pixels to one CSS pixel for layout. That is why your laptop may report a device pixel ratio of 2 while your width: 16rem layout still uses logical pixels. For physical millimetre estimates on screen, you must know whether you care about CSS px (usually 96 per inch) or the pixel grid of an exported bitmap at 300 DPI for print—they are different concepts solved by picking the right DPI in this converter.
Yes. The conversion runs entirely in your browser tab; values are not sent to SynthQuery servers to perform the arithmetic. Your DPI preset and decimal preference can be saved locally for convenience, similar to other free utilities on the site. Network activity, if any, is limited to ordinary page assets when you load the site, not per-keystroke uploads of measurements. For confidential mechanical drawings, you should still follow corporate policy about where documents are viewed, but the calculator itself does not ingest files—only numbers you type.
Use 300 DPI when you are counting raster pixels that will be imaged on paper or merchandise at roughly 300 pixels per inch—common for high-resolution print exports. Use 96 DPI when you are interpreting millimetres as CSS pixels or matching spec documents that assume the web reference pixel. If you mix them—say, treating 300 DPI pixels as if they were CSS px—components will appear vastly larger or smaller than intended. When a designer says “this is 10 mm on the printed card,” ask which rasterization DPI the PDF embeds; that is the DPI you should select here to derive pixel dimensions for bitmap assets.
Open the batch table, enter one millimetre measurement per row, and the tool fills the pixel column using your active DPI. Use “Copy table (TSV)” to paste into spreadsheets; tabs separate columns so Excel and Google Sheets split them cleanly. Add or remove rows as needed for margin lines, grid steps, or component spacing lists. If a row shows an em dash, the millimetre field is not a valid number yet—fix typos or commas before exporting. This workflow beats retyping formulas when a supplier sends ten trim dimensions in mm.
This page optimises for millimetre ↔ pixel workflows with strong DPI education and presets such as A4 edge lengths. The PX to CM Converter centres on centimetres—handy when a brief lists 21 cm instead of 210 mm—while sharing the same underlying inch constant. Many Europeans prefer millimetres for mechanical tolerances; North American web teams still speak in px. Use whichever unit matches your source document, knowing you can always multiply or divide by ten mentally between mm and cm. Cross-linking both tools reduces bookmark clutter when you switch projects.
The mathematics is standard and auditable: ISO inch definition plus your stated DPI. Professional print still requires bleed, safe margins, trapping, and sometimes imposition software that this page does not simulate. Always confirm final dimensions with your printer’s template, especially for folded cartons or roll labels where stretch matters. Use SynthQuery’s output as a first-pass pixel budget, then validate in preflight tools. If a job fails RIP checks, the issue is rarely the mm–px multiplication itself—more often color space, embedded fonts, or missing bleed.
Retina and other HiDPI displays use a device pixel ratio (for example 2× or 3×) so several hardware pixels light up to render one CSS pixel of layout. That keeps tap targets and typography readable without forcing every website to rewrite widths when hardware improves. This converter’s 96 DPI mode speaks the language of CSS px, not the physical LED count of the panel. If you need to export @2x or @3x bitmaps from a millimetre spec, multiply the exported pixel dimensions by the asset scale factor after you compute the base px at your chosen print or design DPI.
You may type commas as decimal separators in many locales; the parser normalizes a single comma to a dot before evaluating the number. Thousands separators are not expected in these small measurements—if you paste “1.234,5” European style, simplify to a plain decimal form to avoid ambiguity. For batch rows, keep one value per cell when you paste from Sheets; extra spaces are trimmed. If parsing fails, the batch cell highlights subtly and shows an em dash until the input is valid.
Start at the Free tools hub (/free-tools) for converters, the HTML viewer, word counter, dictionary, grammar, and related utilities. When you need AI detection, humanization, plagiarism, summarization, or long-form writing, open the all-tools page at /tools for the complete SynthQuery catalogue with pricing context. Footer navigation on most marketing pages also links to /tools and /free-tools so you can move between lightweight calculators and full AI workflows without hunting through search results.