DESIGN PLANNING · VERSION 1.0.0

Pixel Art Integer Scale Planner

Fit pixel art within a target viewport using whole-number enlargement.

Instant calculationCompare five scenariosJSON + CSV exports

Your inputs

Calculation results

Formula & assumptions

Integer scale = floor(min(viewport width/art width, viewport height/art height)); zero means no fit.

Values use the specified units. Calculations use floating-point arithmetic. Check input measurements and formula assumptions before applying the result.

Compare your scenarios

Save up to five results to compare changes side by side. Scenarios stay in this tab until you clear or reload it.

Using Pixel Art Integer Scale Planner

Fit pixel art within a target viewport using whole-number enlargement.

  1. Enter art width, art height, viewport width, viewport height using the units printed under each field.
  2. Choose Calculate, or enable live updates. Review the result labels and formula assumptions.
  3. Save scenarios to compare up to five variations, then copy the report or download JSON or CSV.

Example

Art width: 320 pixels
Art height: 180 pixels
Viewport width: 1920 pixels
Viewport height: 1080 pixels
Integer scale: 6
Displayed width · pixels: 1920
Displayed height · pixels: 1080
Horizontal leftover · pixels: 0
Vertical leftover · pixels: 0

Questions & answers

What does Pixel Art Integer Scale Planner calculate?

Fit pixel art within a target viewport using whole-number enlargement.

Which units should I enter?

Art width uses pixels. Art height uses pixels. Viewport width uses pixels. Viewport height uses pixels. Convert values to these units before calculating.

Which formula does it use?

Integer scale = floor(min(viewport width/art width, viewport height/art height)); zero means no fit.

What does the included example show?

Art width: 320 pixels; Art height: 180 pixels; Viewport width: 1920 pixels; Viewport height: 1080 pixels. Result: Integer scale = 6; Displayed width · pixels = 1920; Displayed height · pixels = 1080; Horizontal leftover · pixels = 0; Vertical leftover · pixels = 0.

Can I compare different settings?

Yes. Save a scenario, change the inputs and save another result. Up to five scenarios are compared in this tab; they disappear when you reload or leave.

Can I export the calculation?

Copy the JSON report or download JSON and CSV with inputs, result labels and numeric values. Processing uses local JavaScript; no calculation request is sent to our server. Displayed values use up to 10 significant digits; exports retain JavaScript numeric precision.

Help improve this tool

Report a problem or suggest an improvement

Describe the issue without pasting private tool input. Feedback goes to our admin inbox.

Find another tool · Read practical guides