How to extract coordinates from text
Paste notes into the input area or choose Upload for a supported text file. Coordinate Extractor checks for decimal degrees, DMS, DDM, UTM, and MGRS patterns, then places each match in a row with Latitude, Longitude, Raw Match, and Source Context.
- Paste coordinate-bearing text into the input area, or use Upload to choose a
.txt,.csv,.log,.kml, or.gpxfile. - Review the Extracted Coordinates table after the text is read.
- Select Valid only to hide Flagged rows, or choose a format in Format.
- Choose Reset filters to return to All formats and both Valid and Flagged rows.
- Use Copy filtered coordinates or Download filtered coordinates as CSV for the rows currently visible.
What each coordinate format needs
Decimal degrees use signed values with a comma, semicolon, or slash between them. The parser also accepts decimal pairs marked with N, S, E, or W. DMS uses degree and minute marks, numeric seconds, and hemisphere letters. DDM uses degree marks and hemisphere letters, with an optional minute mark. UTM uses a zone and band, a six-digit easting, and a six- or seven-digit northing. MGRS uses a zone, two grid letters, and an even number of precision digits.
Input: Team Alpha: 40.7128, -74.0060
Survey marker: 40°42'46"N 74°0'21"W
Output: DD | 40.712800 | -74.006000 | Valid
The table labels this match DD. Latitude and Longitude are shown to six decimal places, and Raw Match keeps the text that was detected. UTM and MGRS rows are converted to latitude and longitude by the page's JavaScript. An MGRS coordinate uses the approximate center of its grid cell.
Filter extracted latitude and longitude pairs
Each row contains Format, Latitude, Longitude, Raw Match, Status, and Source Context. Format includes All formats, Decimal degrees, DMS, DDM, UTM, and MGRS. Valid only keeps rows whose status is Valid. Reset filters restores every format and both statuses. When filtering leaves no rows, the table says No coordinate pairs found.
A plain decimal pair receives an ambiguity note when both values fall within the latitude range, -90 to 90. The row remains Valid because the values could be latitude-first or longitude-first. The parser marks a row Flagged when latitude or longitude is outside its allowed range, or when it cannot resolve an MGRS grid square.
Copy or download coordinates from text
- Copy filtered coordinates puts the visible rows on the clipboard as tab-separated text.
- Download filtered coordinates as CSV saves the visible rows as
coordinates.csv.
Both exports include Format, normalized Latitude and Longitude, Raw Match, validity, note, and Source Context. With no visible rows, the export controls produce no output.
Use the extracted rows in context
Paste a survey log and inspect each pair beside its Source Context. A KML or GPX text file can be loaded with Upload, then UTM or MGRS rows can be checked before the filtered CSV is saved.
For street addresses and PO boxes, use Address Extractor, which targets US-style address patterns. For web addresses, use Extract URLs from Text. If the input contains general numeric values rather than geographic pairs, use Number Extractor. For other text parsing jobs, browse Text Parsing & Data Extraction.
What Coordinate Extractor leaves unchanged
The parser reads coordinate patterns already present in the input. It does not turn addresses, place names, or postal codes into coordinates, and it does not call a mapping or geocoding service. The coordinate code reads pasted and uploaded content in browser JavaScript.
Frequently asked questions
What coordinate formats can Coordinate Extractor find?
It finds decimal degrees, DMS, DDM, UTM, and MGRS patterns. MGRS rows are flagged when the grid square cannot be resolved.
Can I extract latitude and longitude from a file?
Yes. Use Upload with a .txt, .csv, .log, .kml, or .gpx file, then review the rows as the file text is read.
Why is a coordinate pair flagged?
A row is flagged when latitude or longitude is outside its allowed range or an MGRS grid square cannot be resolved. An ambiguous plain decimal pair remains Valid with a note about the possible order.
Does Coordinate Extractor send pasted text to a map service?
No. Parsing and coordinate conversion run in browser JavaScript, and the tool code does not send pasted or uploaded content to a mapping or geocoding service.