- To convert px to percentage, you should know the total size of the base.
- Then, just apply the formula: (px / base) * 100.
- For example, with a 1000px size of base, 100px will be converted to: (100 / 1000) * 100 = 10%.
(px / base) * 100.
Logical resolution = physical resolution / device pixel ratio.| Pixels (px) | Percentage (%) |
|---|---|
| 10px | 1% |
| 20px | 2% |
| 30px | 3% |
| 40px | 4% |
| 50px | 5% |
| 60px | 6% |
| 70px | 7% |
| 80px | 8% |
| 90px | 9% |
| 100px | 10% |
| 110px | 11% |
| 120px | 12% |
| 130px | 13% |
| 140px | 14% |
| 150px | 15% |
| 160px | 16% |
| 170px | 17% |
| 180px | 18% |
| 190px | 19% |
| 200px | 20% |
| 210px | 21% |
| 220px | 22% |
| 230px | 23% |
| 240px | 24% |
| 250px | 25% |