Convert em,px,pt and % in css
July 6, 2007
Hi I gone through lot of sites and found a site which showed this chart which was very helpful. I have listed below that chart.
Thanks to this site: http://reeddesign.co.uk/test/points-pixels.html
Conversion from Points to Pixels (and Ems and %)
Here’s a chart that converts points to pixels (and ems and %). It’s an approximation, which will depend on font, browser and OS, but it’s a good starting point.
| Points | Pixels | Ems | Percent |
| 6pt | 8px | 0.5em | 50% |
| 7pt | 9px | 0.55em | 55% |
| 7.5pt | 10px | 0.625em | 62.5% |
| 8pt | 11px | 0.7em | 70% |
| 9pt | 12px | 0.75em | 75% |
| 10pt | 13px | 0.8em | 80% |
| 10.5pt | 14px | 0.875em | 87.5% |
| 11pt | 15px | 0.95em | 95% |
| 12pt | 16px | 1em | 100% |
| 13pt | 17px | 1.05em | 105% |
| 13.5pt | 18px | 1.125em | 112.5% |
| 14pt | 19px | 1.2em | 120% |
| 14.5pt | 20px | 1.25em | 125% |
| 15pt | 21px | 1.3em | 130% |
| 16pt | 22px | 1.4em | 140% |
| 17pt | 23px | 1.45em | 145% |
| 18pt | 24px | 1.5em | 150% |
| 20pt | 26px | 1.6em | 160% |
| 22pt | 29px | 1.8em | 180% |
| 24pt | 32px | 2em | 200% |
| 26pt | 35px | 2.2em | 220% |
| 27pt | 36px | 2.25em | 225% |
| 28pt | 37px | 2.3em | 230% |
| 29pt | 38px | 2.35em | 235% |
| 30pt | 40px | 2.45em | 245% |
| 32pt | 42px | 2.55em | 255% |
| 34pt | 45px | 2.75em | 275% |
| 36pt | 48px | 3em | 300% |
Entry Filed under: css. .
72 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed



1.
Vicente Pellegrini | July 10, 2007 at 2:08 pm
Finally the conversion table that I seek makes time!
thanks.
Vicente
Sao Paulo-SP-Brazil
2.
szombat | July 31, 2007 at 5:05 am
yes, but whit what font have you calculated this?
’cause 1em will always be 100% but I’m not sure about the px pt relationship, i think thats strongly depends on the actual font.
3. Another handy cheat sheet « Joomla Developer | August 29, 2007 at 8:21 am
[...] Well today again i found an interesting cheat sheet to have near: a conversion table between ems, pixels, points and percentages for the font size in css. [...]
4. Tabla de Equivalencias entre %, px, em y pt con CSS | December 18, 2007 at 9:18 pm
[...] el blog WorldTechies han hecho una tabla de equivalencias entre px, %, pt y em en CSS muy útil para darnos una idea de [...]
5. Actualidad, Entretenimiento y Humor » Tabla de Equivalencias entre %, px, em y pt con CSS | December 18, 2007 at 9:41 pm
[...] el blog WorldTechies han hecho una tabla de equivalencias entre px, %, pt y em en CSS muy útil para darnos una idea de [...]
6. [Recursos] Tabla de equivalencias para medir en la web | Ajax, Javascript, Xul, Internet, Recursos, Informatica … | Ajaxman | December 18, 2007 at 9:59 pm
[...] La fuente esta aqui http://sureshjain.wordpress.com/2007/07/06/53/ [...]
7. CSS: Tabla de Equivalencias entre px, %, pt y em | frogx.three | December 19, 2007 at 5:32 am
[...] tabla fue publicada originalmente en WorldTechnies y de hecho ellos mencionan que esta tabla puede tener ciertas variaciones, dependiendo del Sistema [...]
8. CoderLab’s Blog » Convert Pixels to Points to Ems | January 14, 2008 at 8:54 pm
[...] looking for a way to convert pixels to ems for a website project I was working on, and came across this conversion table which, I’m sure, will be a useful reference to you if you ever need to convert pixels to [...]
9.
sandman6665 | January 31, 2008 at 1:29 am
been looking for this..thank you very much.. great post!
10.
2clicks | February 10, 2008 at 2:45 pm
Exactly what I was looking for!!!! THANKS A LOT!
11.
Yokko | February 12, 2008 at 12:59 pm
This makes no sense since em and ex depends on font size.
12.
penta | February 26, 2008 at 7:03 pm
doesn’t make no sense?
if 1 em is set to 12 pt then 1,4 em will be approximately 16 pt
isn’t it?
13.
vinay | May 2, 2009 at 7:31 am
no it will be 16.8 pt
14. Enlaces 27/02/2008 -- los chicos de la playa | February 27, 2008 at 6:02 pm
[...] http://sureshjain.wordpress.com/2007/07/06/53/ [...]
15.
Z | February 29, 2008 at 1:24 am
From my understanding, em is dependent on parent elements, which often throws a wrench in the works of my employment (laymen terms – suiqshing user code into back end .asp/.net and make it all look purdy)
Why do you say using px is bad?
16.
rey mendoza | March 3, 2008 at 5:49 am
most browsers when no pixel size is declared (in the body) approximately converts 1em=16px so the chart is fairly accurate.
But if a px size is declared, say 12px (on the body) then all this will be in vain, you have to recalculate all of it.
But again, this will work in most browsers
17. Web design resources | grafx-ideas.com | March 5, 2008 at 10:21 am
[...] Convert em,px,pt and % in css [...]
18.
seven | March 14, 2008 at 4:56 am
I want to have the size table like this.
Maybe I’ll use this table many time,Thanks a lot!
19. my so-called blog » links for 2008-03-17 | March 17, 2008 at 2:18 am
[...] Convert em,px,pt and % in css « Worldtechies Convert em,px,pt and % in css July 6, 2007 Conversion from Points to Pixels (and Ems and %) Here’s a chart that converts points to pixels (and ems and %). It’s an approximation, which will depend on font, browser and OS, but it’s a good starting poi (tags: css typography type webdesign) [...]
20.
xmulambox | May 5, 2008 at 1:42 pm
http://www.reeddesign.co.uk/test/points-pixels.html
21. Equivalencias entre pixeles, ems, porcentajes y pixeles « Tuétano, creatividad que cala hasta los huesos | May 26, 2008 at 9:27 pm
[...] aproximadas entre éstas cuatro medidas que me encontré en webadictos qué a su vez la sacaron de WorldTechies. Ya saben esto de la RED trabajando al [...]
22. sasa eh · Convertir pixels (px) a em …no todo es en blanco y negro | May 28, 2008 at 6:19 pm
[...] (Casi) Fácil. Aquí va una pequeña tabla de equivalencia sacada de (Worldtechies) [...]
23. DCNY » Blog Archive » Convert em,px,pt and % in css | May 31, 2008 at 8:12 am
[...] http://sureshjain.wordpress.com/2007/07/06/53/ by Suresh kumar [...]
24. Cheat Sheets for PHP, Ruby on Rails, MySQL, CSS and SEO | Cynergise - internet marketing ideas and tips from Chandesh Parekh | July 15, 2008 at 6:51 am
[...] Conversion table for em, px, pt & % in CSS by Suresh Jain [...]
25.
Dwayne Charrington | August 12, 2008 at 2:16 am
Thanks for this table. I looked for ages for a table like this, and I was surprised when I didn’t really find anything explained the conversion so simply. I mean I found calculators and whatnot, but it’s not efficient when you’re working on a project.
Why do you think that nobody has made up a table and placed it upon their blog anyway? Some people have, but not many have gone to such extensive conversion.
Your blog has definitely been bookmarked. Thanks again for supplying something I needed so badly.
26.
Megan | March 10, 2010 at 3:15 am
I completely agreed with Dwayne !
Thank for this table.
27. Convert em,px,pt and % in css at DCNY BLOG | September 16, 2008 at 4:35 am
[...] http://sureshjain.wordpress.com/2007/07/06/53/ by Suresh kumar [...]
28. Convert em,px,pt and % in css | clearfix | September 26, 2008 at 1:59 am
[...] Convert em,px,pt and % in cssに書かれています。 [...]
29.
Catarina Clemente | October 13, 2008 at 8:51 pm
Very pertinent and honest contribution. Thanks a bunch!
30.
Isquare Technologies | October 23, 2008 at 11:01 am
Excellent Tables !! Saved my lot of time
Thanks Suresh
31. Blog Roundup for the 6th of July 2007 :: Christopher Ross | October 27, 2008 at 1:45 am
[...] leave a comment.July 6th 2007 in review. Don’t forget to look at Release – Grassy Snow Theme. Convert em¸px¸pt and % in css I also took a look at topgold – top professional wordpress theme. I wanted to point to top blogs. [...]
32. Portland Web Development » Blog Archive » css em messurment for tracking and kerning | October 31, 2008 at 5:44 pm
[...] Here’s a conversion table to help explain. [...]
33.
dtamas | November 12, 2008 at 11:08 am
thanks, thats really helpful!
34.
freak | November 19, 2008 at 11:31 am
This is pretty useless: works for 16 point typefaces only. For example Tahoma is a 14pt typeface, so 14 pt will be 1em, and not 1.2em. A dynamic table would be better where you can set the typeface… Just my 2 cents.
35.
freak | November 19, 2008 at 11:33 am
Typo: it works for 12 pt typefaces only…
36. Mimi Goodies: 100% Original resources for download. » Blog Archive » Improving your site: Tips | December 1, 2008 at 6:12 am
[...] the user to increase the size. If you need it, I found a really cool conversion table. It shows the equivalents of Em, Px, Pt and %. Way [...]
37.
Murilo Reinert | December 10, 2008 at 1:33 pm
Many thx bro!!
You help many!
Murilo – Joinville/SC – Brazil
38.
convert | January 12, 2009 at 12:13 am
I actually used this table to convert all pixels in my css into em a while ago. Now I created for larger-multiple conversion jobs this handy pixels to em ( or em to px ) converter online if anyone needed an automatic conversion. Thank you…
39.
Cher | January 23, 2009 at 7:31 am
Thanks for the conversion table.
But it didn’t help me.
Even after converting to %, I’m still facing problems with respect to resolution.
Can this conversion be used when body font size is 76%?
40.
Electricspace | February 14, 2009 at 11:31 pm
For those who want to work with em’s: I’ve written a simple program in .NET to a pixel size to em. I use it in my day-to-day work:
You can download the program “Pixel 2 em calculator” from http://electricspace.blogspot.com/2009/02/pixel-2-em-calculator.html
41. Typography on the Web | March 2, 2009 at 11:39 pm
[...] http://sureshjain.wordpress.com/2007/07/06/53/ [...]
42.
Delhi City India | March 17, 2009 at 7:04 am
Hello,
I want to know that if td size is 25px then what is the percentage of this size.
43.
EnjoyMedia | March 17, 2009 at 4:43 pm
Nice post.
44. Wintivity ™ » Blog Archive » creating a Joomla Site Template - Joomla specific CSS regarding Typography | March 19, 2009 at 10:04 pm
[...] http://sureshjain.wordpress.com/2007/07/06/53/ [...]
45.
vinay | May 2, 2009 at 7:34 am
wow!
I like it.
thnx suresh!
46.
jean-jacques | May 6, 2009 at 6:26 am
The conversions table is wrong. this apply only for a display with 96 dpi. On a display with 72 dpi 12pt is equal to 12px with 132 dpi you will have 12pt = 22px.
Use of px as the base of font size is wrong, the same apply to the use of em ( 16px on IE and firefox, 18 on Safari, …) without defining a base font size in pt.
47.
venugopal | May 7, 2009 at 7:13 am
Hi All,
I have one website. That site is currently running in pixels format but now I want to convert my website in liquid designing (percentage). For this I want a tool which convert pixels into percentage format.
One more thing that my website is not working well in all browser. Please give me any suggestion by which my website working properly.
Please give me your valuable suggestion.
Thanks
venugopal
48. Convert em,px,pt and % in css « Nguyentranson’s Weblog | May 19, 2009 at 3:30 am
[...] Conversion from Points to Pixels (and Ems and %) [...]
49. Lesbarhet på nett - Elefantzonen.com | June 22, 2009 at 11:20 am
[...] base font size, det er her du skal endre tekststørrelsen. Under size på det grønne feltet er størrelsene oppgitt i em. La den være på 1em i starten og endre heller på base font size. 1em betyr 100%. Hvis [...]
50. Czytanie na 100% - user experience design: projektowanie interakcji i użyteczność | July 12, 2009 at 6:59 pm
[...] przydatna tabelka konwersji jednostek wielkości fontów w CSS (zaczerpnięta stąd) – domyślny rozmiar podświetlony [...]
51. WeBlog — блог про веб-программирование » Blog Archive » CSS: таблица соответствия px, pt, em и % | July 23, 2009 at 3:42 pm
[...] http://sureshjain.wordpress.com/2007/07/06/53/ [...]
52.
Rob | July 29, 2009 at 9:46 am
Nice table. Have been searching for ages for something like this
Thanks!
53.
FLiTz | August 1, 2009 at 5:33 am
thanks. this is definitely what i’ve been looking for.
54.
Girish | August 10, 2009 at 5:00 am
The table is incorrect. You should atleast specify which font it applies to.
55. Hopelessly, I’ll Love You Endlessly » Audio Rush | August 14, 2009 at 9:16 am
[...] Px, em ,pt and % Calculator- This website was very useful when I was converting from px to percentage (%). The reason for converting is because if you use px and pt for your font and line-height measurements and it’s too small; the visitor won’t be able to enlarge your font in their browser. This is why it’s best to use % or em. The calculator isn’t 100% correct and it varies but it’s pretty easy to work out once you know how. [...]
56.
dean peters | August 18, 2009 at 6:01 pm
Found a nice page that also provides conversions relative to the size you set for the BODY tag: http://PXtoEM.com
57.
rawraj | September 25, 2009 at 4:52 pm
Thanks a lot m8
)
I always thought that pts and pixels displayed differently.(maybe because I never thought of using odd numbers in pixel sizes).
I would always convert 10pt to 12 pixel and would just assume that the browser is displaying the font “weirdly”
Well after reading this article i put Hello world wrapped in span tags and inline css next to each other.
Gave one span 10pt and other 13 px and found it was the exact same size.
So much for assumption(didnt someone say assumptions are the mother of all f#@#ups
Got to print this stuff and keep.
Helpful I get some stuff designed in corel draw and there they follow the point system.
I need to read up on why pts are better then pixels or is em the best?
58.
Abel Braaksma | September 30, 2009 at 5:16 pm
(my previous tries received a “discarded” message, perhaps your spam bot is set too strictly…, you can email me if you know more)
Some thoughts: An em is dependent on the specifications in the font itself, there’s no direct relation to pixel size. PPI is pixels per inch, which should be taken into account before doing any calculation (a Mac has 76 PPI, old Windows has 72, newer Windows have 96 ppi), this influences the size of the rendered font by large. Local settings (i.e., for people with bad visuals) can have an even smaller points per inch.
The best thing is, eventually: test and find the correct factor for your specific font on your specific display and use that factor throughout.
Perhaps of interest, but not fully related: font matching resolution by browsers which can influence the size of your glyphs unpredictably
59.
Nitin | October 8, 2009 at 3:05 pm
There is no clear cut relationship between EMs and pxs, because EM sizes are based relative to the size of the font, whereas px sizes are based relative to the screen resolution. Since those two elements are disparate, no exact correlation can be made.
There are ways, however, to get fairly close. One method is to set the base font size (the font-size property on the element) to around 62.8%. This makes the base font, or 1.0em, approximately equal to 10px. It’s not exact, and changes from font to font, but generally speaking it’s pretty accurate. With that font setting in the body, you can use EMs as px equivalents like so…
1.0em = 10px
1.1em = 11px
1.2em = 12px
2.0em = 20px
5.0em = 50px
etc.
There are a few caveats, however, the major one being that it isn’t a precise conversion so elements that must be EXACTLY Xpx are unlikely to be so. The other big danger is that setting the base font this small makes IE text resizing somewhat problematic, as this 62.8% size becomes the “meduim” setting for IE. Since IE only allows two font-size increases (“large” and “larger”), those who need larger fonts may not get a big enough size to suit their needs. Likewise, sizing down to “small” or “smaller” makes text virtually unreadable.
60.
Brightshore Miami | October 30, 2009 at 6:18 pm
Great post, not too many helpful resources on typography and usability on the web!
61.
shirley | November 9, 2009 at 10:48 am
nice…
It helped me
Keep it up
62. CSS References, Tutorials, Cheat Sheets, Conversion Tables and Short Codes : Speckyboy Design Magazine | November 9, 2009 at 4:03 pm
[...] Convert em,px,pt and % in CSS [...]
63.
izdelava spletne strani | November 9, 2009 at 7:58 pm
Thanx fot this post, been looking around for this a long time. Really helpfull
64. Таблица соотношений px, pt, em % « Web изнутри | February 5, 2010 at 5:41 pm
[...] и sureshjain.wordpress.com Рубрики:Web-верстка Комментарии (0) Trackbacks (0) [...]
65. CSS Tabla de Conversión Point a Pixels y Em a Porcentaje | Servicios y Soluciones de Negocio, Sistemas de Información, Desarrollo Web, Marketing Online, Publicidad | February 21, 2010 at 11:02 am
[...] Publicada originalmente en WorldTechnies [...]
66.
Jack | March 9, 2010 at 9:03 am
Thanks for the information…
I am new to em so was badly looking for something like this..
Thanks,
Jack
67.
Wordpress Guru | March 15, 2010 at 8:42 am
Thanks this is a great time saver, appreciate it
68.
fractal-design | March 17, 2010 at 4:49 pm
At least one of the equivalencies is wrong. 10pts equals 0.834 ems (so, 83.4%). This table is inaccurate.
69.
Mark Stegman | June 2, 2010 at 1:47 am
Yess, thank you for at least a relative conversion.
Peace.
70.
Burhan | June 24, 2010 at 5:47 am
Hey I Want to know What are the actual value of em and pt if our base is Pixel.
shayri Sms
71.
Dragan Eror | June 28, 2010 at 12:35 pm
This is great post! I reposted this table on my blog as my reminder
http://draganeror.com/css_font_size_conversion_table
Thank you!
72. Таблица соотношений px, pt, em % « Блог вебмастера | July 27, 2010 at 1:28 pm
[...] и sureshjain.wordpress.com Понравилось? [...]