Typography Unit Converter
Convert CSS lengths using configurable font sizes, viewport dimensions and pixels per inch.
Settings & files
Conversion settings
Font & viewport context
Generate a value range
Quick presets
Open files
Up to 1,000 rows and 200,000 input characters. Decimal points and scientific notation are supported; unit codes are case-sensitive. Text files must use UTF-8.
Try the example, paste input or open a file to begin.
Convert through px: input × source factor ÷ target factor. Unit codes are case-sensitive. CSS relative lengths depend on the context you enter; CSS physical units normally use 96 pixels per inch.
Supported units & reference factors
Each factor converts one unit to px. Codes use u for micro. These are starting-context factors; your editable font, viewport and PPI settings determine the actual conversion.
| Unit code | Factor to px |
|---|---|
| px | 1 |
| pt | 1.3333333333333333 |
| pc | 16 |
| in | 96 |
| cm | 37.79527559055118 |
| mm | 3.7795275590551185 |
| em | 16 |
| rem | 16 |
| vw | 12.8 |
| vh | 7.2 |
Conversion audit
Compare units for the first valid input
File batch status
Saved comparisons · current tab
Using Typography Unit Converter
Convert CSS lengths using configurable font sizes, viewport dimensions and pixels per inch.
- Select the conversion direction or source and target units, then review the format-specific settings.
- Paste your input, try an editable example or open files. Choose Convert and inspect the preview and audit.
- Download the actual result, export an audit or report, or convert up to 10 files into a ZIP. Review any errors before using the output.
Example
16 px 1 em 12 pt
Questions & answers
What can Typography Unit Converter convert?
Convert CSS lengths using configurable font sizes, viewport dimensions and pixels per inch.
Which format rules should I check?
Convert through px: input × source factor ÷ target factor. Unit codes are case-sensitive. CSS relative lengths depend on the context you enter; CSS physical units normally use 96 pixels per inch.
Can I convert several files?
Yes. Open up to 10 files, select the settings and choose Convert files to ZIP. The status table identifies converted and failed files. The downloaded ZIP includes outputs and an audit; failures are not silently treated as successful.
How do I check the result?
Review each row, its source code and numeric result. Compare the first valid input in all supported units, swap source and target, or feed the converted values back as input. Formatting affects display only.
What are the limits?
Up to 1,000 rows and 200,000 input characters. Decimal points and scientific notation are supported; unit codes are case-sensitive.
Is input sent to a conversion service?
The conversion runs locally in a browser worker with bundled scripts. No conversion API is called. Copying and downloads happen only when you click their buttons. Saved comparisons stay in this tab and are cleared by reload. Ad-supported pages can load third-party scripts.
Help improve this tool
Report a problem or suggest an improvement
Describe the issue without pasting private tool input. Feedback goes to our admin inbox.
