PX to Percent Converter

Convert pixels to a percentage of the parent element. % = px ÷ parent size × 100, so 300 px in a 1200 px container is 25%.

⇅
Rounding precision (max 15):

Popular Conversions

In a 1200 px container: 300px = 25%, 400px = 33.333%, 600px = 50% and 900px = 75%. In a 1140 px container (Bootstrap's widest default), 285 px = 25%.

PX to Percent Conversion Table

Percentages for common pixel widths inside four common container widths.

Pixels (px) of 960px of 1140px of 1200px of 1440px
10px1.042%0.877%0.833%0.694%
20px2.083%1.754%1.667%1.389%
24px2.5%2.105%2%1.667%
30px3.125%2.632%2.5%2.083%
40px4.167%3.509%3.333%2.778%
48px5%4.211%4%3.333%
50px5.208%4.386%4.167%3.472%
60px6.25%5.263%5%4.167%
80px8.333%7.018%6.667%5.556%
100px10.417%8.772%8.333%6.944%
120px12.5%10.526%10%8.333%
150px15.625%13.158%12.5%10.417%
160px16.667%14.035%13.333%11.111%
200px20.833%17.544%16.667%13.889%
240px25%21.053%20%16.667%
250px26.042%21.93%20.833%17.361%
300px31.25%26.316%25%20.833%
320px33.333%28.07%26.667%22.222%
360px37.5%31.579%30%25%
400px41.667%35.088%33.333%27.778%
480px50%42.105%40%33.333%
500px52.083%43.86%41.667%34.722%
600px62.5%52.632%50%41.667%
720px75%63.158%60%50%
800px83.333%70.175%66.667%55.556%
900px93.75%78.947%75%62.5%
960px100%84.211%80%66.667%
1000px104.167%87.719%83.333%69.444%

Turning a Fixed Layout into a Fluid One

A design with a 300 px sidebar and 900 px content area in a 1200 px container becomes width: 25% and width: 75%. A 30 px gap becomes 2.5%. Now the layout scales with any screen instead of overflowing on small ones.

Percent of what? Width, padding and margin percentages use the parent's width — even vertical padding. Height percentages only work when the parent has a fixed height. A font-size percentage uses the parent's font size.

How to Convert PX to Percent

% = px ÷ parent size × 100

Example: 240 px inside a 960 px container is 240 ÷ 960 × 100 = 25%.

Frequently Asked Questions (FAQs)

How do I convert px to percent?

Divide the pixel value by the size of the parent element and multiply by 100. 300 px in a 1200 px parent is 25%.

What is 600px as a percentage of 1200px?

600 px is 50% of 1200 px.

What does a padding percentage refer to?

Padding and margin percentages are based on the parent element's width, for both horizontal and vertical sides.

Why doesn't height: 50% work?

A percentage height needs a parent with a defined height. Without one, the browser treats it as auto.

Does EachConvert store my data?

No. All conversions happen entirely in your browser. The values you enter are never sent to our server or saved.