Height Notation Parser Live Calculator
Instant client-side calculation • 100% private
Regex parsing & lexical evaluationHow Height Notation Parser Works?
The Height Notation Parser works by reading a typed height string, detecting the feet and inch markers, and converting the parsed values to centimeters. An input of 5′10″ returns 5 ft 10 in = 177.80 cm.
- 1
Paste the notation
Enter a string such as 5'10", 5′10″, 5ft10, or 5 ft 10 in.
- 2
Detect markers
The parser reads ' and ′ as feet and " and ″ as inches.
- 3
Validate the values
The parser checks that inches fall between 0 and 11.99.
- 4
Read the result
The output shows parsed feet, parsed inches, and centimeters.
Height Notation Parser Formula
The Height Notation Parser formula is cm = (parsed feet × 12 + parsed inches) × 2.54. The parser extracts the 2 numbers with pattern matching before the arithmetic step.
Example: Parse 6′1½″
- feet = 6, inches = 1.5
- (6 × 12 + 1.5) = 73.5 in
- 73.5 × 2.54 = 186.69 cm
Height Notation Parser Conversion Table
The Height Notation Parser Conversion Table lists 12 notation styles the parser accepts and the centimeter value of each.
| Input Notation | Parsed As | Centimeters (cm) |
|---|---|---|
| 5'10" | 5 ft 10 in | 177.80 |
| 5′10″ | 5 ft 10 in | 177.80 |
| 5ft10 | 5 ft 10 in | 177.80 |
| 5 ft 10 in | 5 ft 10 in | 177.80 |
| 5' 10'' | 5 ft 10 in | 177.80 |
| 6' | 6 ft 0 in | 182.88 |
| 70" | 0 ft 70 in | 177.80 |
| 5'4.5" | 5 ft 4.5 in | 163.83 |
| 5-9 | 5 ft 9 in | 175.26 |
| 4'11" | 4 ft 11 in | 149.86 |
| 6'2" | 6 ft 2 in | 187.96 |
| 5'0" | 5 ft 0 in | 152.40 |
What is Height Notation Parser?
The Height Notation Parser is a tool that interprets symbol-based height strings such as 5′10″ and returns structured feet, inches, and centimeters. The tool accepts straight quotes, typographic prime marks, and abbreviations.
Heights copied from websites contain mixed symbols. Prime (′), apostrophe ('), and right single quote (’) characters look alike but differ in code. The parser treats all 3 as feet markers.
What are the uses of Height Notation Parser?
There are 4 main uses of the Height Notation Parser, including copied text, data imports, and form inputs.
Copied web text
Profiles with 5’10” curly quotes parse without manual cleanup.
Data imports
Spreadsheet cells with 5'10" text convert to numeric cm.
Free-text form fields
Developers test which inputs a form parser accepts.
Roster cleanup
Sports rosters with mixed notation convert to 1 unit.