px to percentage

A converter that calculates the percentage from a px for a given base size to make the measurement responsive

Pixels
Base Size

Hot Keys

C

Calculate and copy the result of calculation.

V

Calculate the result.

B

Copy the result of calculation.

R

Reverse the converter to "Percentage to PX".

Q

Focus the "Pixels" input.

W

Focus the "Base Size" input.

FAQ

How to convert PX to Percentage?

To convert px to percentage, you should know total size of base Then, just apply formula: (px / base) * 100 For example, with 1000px size of base, 100px will be converted to: (100 / 1000) * 100 = 10%

What is the PX to Percentage formula?

(px / base) * 100

What is px unit? (Pixels)

Pixel unit is the theorical smallest dot displayed on a computer screen. Nowadays, pixel unit can differ between physical resolution and logical resolution. This difference is called device pixel ratio or DPR: Logical resolution = physical resolution / device pixel ratio. So, a screen with 1024x768 physical resolution with a DPR of 2 will have a 512x384 logical resolution.

What is % unit? (Percentage)

Percentage is a number or ratio expressed as a fraction of 100. It is often denoted using the percent sign (%). A percentage is a dimensionless number, primarily used for expressing proportions, but percent is nonetheless a unit of measurement in its orthography and usage. In CSS, it is often used to define a size as relative to an element's parent element. For example, if parent element's size is 1000px, then 1% will be equal to 10px, 1% = 10px.

PX to Percentage Conversion Table if base size is 1000px

pxpercentage
10px1%
20px2%
30px3%
40px4%
50px5%
60px6%
70px7%
80px8%
90px9%
100px10%
110px11%
120px12%
130px13%
140px14%
150px15%
160px16%
170px17%
180px18%
190px19%
200px20%
210px21%
220px22%
230px23%
240px24%
250px25%

More PX & Percentage Conversions