Convert Field Units

Data Tools · geoprocessing tool · by Jeff Jenness
Works at every ArcGIS Pro license level

Summary

Converts every value of a numeric field from one measurement unit to another, into a new field or in place: inches to millimeters, acres to hectares, degrees Fahrenheit to degrees Celsius, percent slope to degrees, tree diameters to basal area. The units are the catalog of the Unit Converter: more than 1,200 units in 23 measurement classes, plus any units and classes you have added in its My Units tab.

The Convert a Field tab of the Unit Converter window runs this tool. Run it from the Geoprocessing pane, in ModelBuilder or in Python when that suits better: it is in the Data Tools toolset of the Jenness Enterprises Tools toolbox.

Usage

An example: route lengths in miles

In the Corridor Evaluation Tutorial, Patch Analysis draws the black bear's route through the patches of its corridor as polyline segments, with each segment's length in meters in its Length_m field. To have the lengths in miles as well, the tool is set up as below. The Convert a Field tab of the Unit Converter window runs the same conversion, and its Open as Geoprocessing Tool button opens the tool like this, filled in.

The Convert Field Units tool in the Geoprocessing pane: Input table or layer Black_Bear_Route_through_Patches, Field to convert Length_m, Measurement class Length and Distance, From unit meters, To unit miles, Output field name Length_miles, and the Run button
The tool in the Geoprocessing pane: the route layer, its Length_m field, meters to miles, and the new field Length_miles.
The attribute table after the run, with a new last column headed Length_m in miles (from meters): 5.206298 for the 8378.724518-meter segment, then 0.205135, 0.158238, 0.15378, 0.119409, 0.105492, 0.083399 and 0.079119 for the shorter segments
After the run, the new field in the attribute table, shown by its alias Length_m in miles (from meters): the 8,378.7-meter segment is 5.2063 miles.
The Metadata tab for the field Length_miles. Field description: the values of the field Length_m, converted from meters to miles by the Convert Field Units tool (Wildlife and Forestry Tools for ArcGIS Pro, Jenness Enterprises, www.jennessent.com) on 2026-10-08; Units: miles (Length and Distance); 1 mile = 1609.344 meters; then the mile's definition. Description source: the Unit Converter catalog, the source of the unit's value (NIST Special Publication 811) and the sources of its description (the Oxford English Dictionary entries foot and mile, and the original Unit Converter). Range of values: minimum 0.0186485529964977, maximum 5.20629804306499, units of measure miles
The new field's description in the dataset's metadata: what it holds, the conversion that made it and when, the definition of the mile with its value in meters, the sources of that value and of the description, and the range of the values.

The tool can also be run in a model, where it passes the table on to the next step.

A ModelBuilder model of three elements: the blue input Black_Bear_Route_through_Patches, the yellow tool Convert Field Units, and the green output Black_Bear_Route_through_Patches (2)
Convert Field Units in a ModelBuilder model: the route layer in, the updated table out.

Parameters

LabelExplanationData type
Input table or layerRequired · in_table The table, feature class, layer or table view whose field is converted. A layer or table view converts only the records it shows. Table View; Feature Layer; Table; Feature Class
Field to convertRequired · in_field The numeric field holding the values to convert. Field
Measurement classOptional · unit_class The class of the two units: Length and Distance, Area, Volume and so on, including any class of your own. It shortens the unit lists. String
From unit (the units the field holds now)Required · from_unit The unit the values are in now, named as in the Unit Converter, such as inches, acres or degrees Fahrenheit. String
To unitRequired · to_unit The unit to convert to, in the same class. String
Output field name (a new field, or the input field to convert in place)Optional · out_field The field that receives the converted values: a new Double field, an existing numeric field whose values are replaced, or the input field itself. String
Updated tableDerived · out_table The input, with the converted values, for chaining the tool in ModelBuilder. Table View

Python

Stream lengths from feet to meters into a new field, then tree heights from inches to millimeters in place:

import arcpy
arcpy.ImportToolbox(r"C:\path\to\JennessEnterprisesTools.pyt")  # your install path

arcpy.jenness.ConvertFieldUnits(
    in_table=r"C:\data\streams.gdb\reaches",
    in_field="Length_ft",
    unit_class="Length and Distance",
    from_unit="feet",
    to_unit="meters",
    out_field="Length_m")

arcpy.jenness.ConvertFieldUnits(
    in_table=r"C:\data\plots.gdb\trees",
    in_field="Height",
    from_unit="inches",
    to_unit="millimeters",
    out_field="Height")     # the input field itself: converted in place

Recommended citation

Jenness, J. 2026. Convert Field Units. Wildlife and Forestry Tools add-in for ArcGIS Pro, v. 1.105 (October 2026). Jenness Enterprises. Available at: https://github.com/JeffJenness/Wildlife_Tools.

Credits

By Jeff Jenness, Jenness Enterprises (www.jennessent.com). The catalog of units and their definitions comes from his Unit Converter program of 2000 and 2001.

Licensing information

Works at every ArcGIS Pro license level (Basic, Standard, Advanced). No extension licenses are required.