designwithfocus

Case Converter

Free, instant, no sign-up.

Free No sign-up Runs in your browser
camelcasedesignWithFocus
snake-casedesign_with_focus
kebab-casedesign-with-focus
pascalcaseDesignWithFocus
constant-caseDESIGN_WITH_FOCUS
dot-casedesign.with.focus
uppercaseDESIGN WITH FOCUS
lowercasedesign with focus
alternating-casedEsIgN wItH fOcUs
title-caseDesign With Focus
sentence-caseDesign with focus

How to use Case Converter

  1. Enter a font size.
  2. Choose a line-height ratio.
  3. Copy the line height in pixels.

The line-height formula

Line height equals font size times the ratio. A 16-pixel font at a ratio of 1.5 has a line height of 24 pixels.

A ratio between 1.4 and 1.6 is comfortable for body text.

Font sizeRatioLine height
16 px1.524 px
20 px1.530 px
16 px1.625.6 px

FAQ

What is line height?

It is the vertical space between lines of text, also called leading.

What ratio is best for body text?

Between 1.4 and 1.6 is comfortable for most body text.

Does it upload anything?

No. It runs entirely in your browser.

Can I use the value in CSS?

Yes. Use it as pixels, or use the ratio itself as a unitless line-height.

Report a problem with this tool