Gerber and Excellon Coordinate Format Converter
Set the integer and decimal digits and the zero-omission mode from the file header, then paste a raw coordinate to read its value, or enter a value to get the coordinate string to write.
Formulas used
Equations
- Value = integer coordinate / 10^(decimal digits)
- Leading-zero omission: digits are right-aligned
- Trailing-zero omission: pad on the right to the full digit count
Assumptions and limits
Read before you rely on the result
- The format comes from the file's %FSLAX..Y..*% line or the Excellon header, for example 3.5 or 4.6.
- The resolution is one unit in the last decimal place, for example 0.00001 mm at 3.5 millimetre format.
- Trailing-zero omission is deprecated in current Gerber specifications, but older files still use it.
Frequently asked questions
What does 4.6 format mean?
It has 4 integer digits and 6 decimal digits, so the resolution is one millionth of a unit.
How do I read a coordinate like X1250000?
With a 3.4 format and leading zeros omitted it equals 125.0000. Divide the integer by 10 to the power of the decimal digits.
Related calculators
Skip the manual file work
NevilLabs exports production-ready Gerber files from a layout, so you spend your time on the design and not on file formats.