Trail Notes

How to Batch Convert a List of Coordinates

Forty positions in the wrong format is a five-minute job, as long as you can see which lines did not convert.

Coords Reading time: 10 minutes Updated By the GPX Analyzer project

How Do You Convert a List of Coordinates?

Put one coordinate on each line and run the whole list through a batch converter. In the free Coordinate Converter, scroll down to the Batch Coordinate Converter, choose the format the list is in and the format you want, paste the list or load a CSV or text file, and click Convert List. Every line is converted, shown in a table, and plotted on a map, and Download CSV saves the result with one row for each line of your list, in the same order. Any two of eleven formats work: decimal degrees, DMS, DDM, UTM, MGRS, USNG, GARS, Plus Codes, the two Swiss grids, and the British grid. A line can carry a waypoint name, and when the output is decimal degrees the list can also be saved as a GPX waypoint file for a GPS unit. A line that cannot be read is marked and left blank. It is never guessed at.

When a List Beats One at a Time

A straight line of small stone cairns running across a desert plain toward hazy mountains in low golden light

  • A field sheet or survey export. Forty stations in UTM, and the mapping app wants latitude and longitude.
  • A search or incident list. Positions radioed in as USNG or MGRS that have to go onto a web map.
  • Waypoints from a guidebook, a roadbook, or a PDF. Printed in degrees, minutes, and seconds; your GPS imports decimal degrees.
  • A spreadsheet of sites. One column of positions that has to be handed to someone who works in a different format.
  • Waypoints for a device. A typed list that needs to become a GPX file.

Past four or five positions, converting one at a time is where transposed digits come from. A batch run treats every line the same way and shows you all of them on one map.

What the List Can Look Like

One coordinate per line. A line can be the coordinate alone, or the coordinate with a name before or after it.

Kind of lineExampleHow it is read
Coordinate alone11S 731676 3577687Converted; numbered WP01, WP02, and so on if you make a GPX file
Name, then coordinateTrailhead, 11S 731676 3577687
WP1: 11S 731676 3577687
The name is kept in its own column
Coordinate, then name11S 730402 3579662 Water tank 2The same
Spreadsheet columnsGate, 731676, 3577687, 11SCommas, semicolons, or tabs between the parts are all accepted
Decimal commasTrailhead; 32,312064; -114,539201Read as 32.312064, −114.539201 when the columns are split by semicolons

Three rules decide whether a list converts cleanly:

  • One format per run. You tell the converter what the list is; it does not guess line by line. A decimal-degrees line in a UTM list is marked as not read, so a mixed list has to be converted in two passes.
  • Latitude comes first in decimal degrees, DMS, and DDM, unless the line says otherwise with N, S, E, and W, or a header row names the columns. A bare pair such as -114.539201, 32.312064 is refused, because 114 cannot be a latitude. A pair such as 32.3, 45.1 is valid either way round, so it is taken as written.
  • Every line needs everything. A UTM line needs its zone, a Plus Code needs to be the full code, and a USNG or MGRS reference needs its grid zone and square.

Step by Step

  1. Open the Coordinate Converter and scroll to the Batch Coordinate Converter, below the single converter.
  2. Choose the input format and the output format. The list box shows a short sample of the input format you picked, so you can see what a line should look like.
  3. Paste the list, or click Load CSV or Text File, or drop a file on the list box.
  4. Click Convert List. A summary line says how many lines converted and how many were not recognized. The table shows each line's name, the coordinate as it was read, and the result or the reason it failed.
  5. Look at the map. Every converted point is plotted. A point in the sea, or a continent away from the rest, is a line to check; click its marker to see which row it is.
  6. Download. Download CSV works for every output format. Download GPX is offered when the output is decimal degrees.

A Worked Example: UTM to Latitude and Longitude

Four lines, with UTM as the input format and decimal degrees as the output:

Trailhead, 11S 731676 3577687
11S 730402 3579662
Camp 11S 729950 3581240
731676 3577687

The CSV that comes back:

name,input,latitude,longitude,note
Trailhead,11S 731676 3577687,32.312065,-114.539198,
,11S 730402 3579662,32.330129,-114.552240,
Camp,11S 729950 3581240,32.344445,-114.556656,
,731676 3577687,,,No UTM zone on this line

Three lines converted. The fourth has an easting and a northing and no zone, and those two numbers fit a different place in every one of the sixty zones, so it is left blank with the reason in the note column. The file still has four rows, in the order you gave them, so it lines up with the list it came from.

To fix the fourth line, type 11S in the box labeled Zone for lines without one and convert again. Lines that carry their own zone keep it; only the lines without one use the box.

Saved as GPX, the same list becomes three waypoints named Trailhead, WP02, and Camp. An unnamed line is numbered by its place in the list, so the numbers in the file match the rows on your sheet.

Starting from a Spreadsheet

There are two ways in, and neither needs the file to be rearranged first.

  • Copy and paste. Select the cells in Excel, Google Sheets, or Numbers, copy, and paste into the list box. The columns arrive separated by tabs, which the converter reads like any other separator.
  • Save as CSV and load it. Use File → Save As or Download and choose CSV, then load that file. A workbook file (.xlsx) itself cannot be loaded. The file can be up to 2 MB, which is tens of thousands of lines.

If the first row is a header, it is recognized and skipped, and it is put to use:

  • A column headed name, title, label, waypoint, site, id, or similar supplies the names.
  • Columns headed lat and lon (or latitude and longitude) are read in the right order even when longitude comes first.
  • Columns headed elevation, time, description, notes, and the like are ignored, so their numbers are not mistaken for part of a coordinate.

If you want the elevation, time, or description carried into a GPX file, convert the list to decimal degrees here and then use the CSV to GPX Converter, which maps those columns. How to Convert CSV to GPX covers that step.

The Letter After a UTM Zone

This is the one place where a list can convert without an error and still be wrong. In 11S, the S is a latitude band: one of the letters from C to X, each naming a strip of latitude about 8 degrees deep. Band S runs from 32° to 40° north. It does not mean south.

GIS software often writes the hemisphere there instead: "zone 11N" for north, "zone 56S" for south. The converter allows for both. For north there is nothing to decide, because 11N read as band N is in the northern hemisphere either way. For S, it keeps the band reading when the northing puts the point in band S, and reads the letter as south when it cannot be the band. So 56S 334000 6250000 converts to −33.877291, 151.205137, in Sydney, the same as 56H 334000 6250000 with its true band letter.

One range of latitudes cannot be settled that way. A southern point between about 50° and 59° south has a northing that is also a real place in band S: 21S 400000 4260000, meant as the Falkland Islands, is a valid position at 38° north, and that is how it is read. If your list covers Tierra del Fuego, the Falklands, or the islands farther south and uses S for the hemisphere, replace the S with the true band letter (F for most of that range) before converting. The map preview shows the mistake at once: the points will be in the northern hemisphere. Topographic Map Navigation with UTM explains zones and bands.

When a Line Fails

A failed line keeps its row and gets a note. These are the notes and what to do about each.

NoteWhat it meansFix
Not recognized as UTM (or DD, DMS, and so on)The line does not read as the input format you choseCheck the format choice first. Then look for a stray character, a missing number, or spaces inside a number
No UTM zone on this lineAn easting and northing with no zoneAdd the zone to the line, or enter it once in the zone box
Short Plus Code: the full code is neededA code such as 8F66+R8 Yuma, which depends on a nearby townUse the full code, 85478F66+R8
Shortened USNG: the grid zone and square are neededA reference cut down for local use, such as QR 3167 7768Put the grid zone and 100 km square back: 11S QR 3167 7768
NAD 27 reference: shift it to NAD 83 firstThe line says it is on the older North American datumConvert the datum first; see Datum 101
Outside the Swiss grid area, or the British grid areaThe position is real but that national grid does not reach itChoose a worldwide output format for that line

The converter is strict on purpose. A tool that guesses will turn a typo into a believable position somewhere else, and a wrong waypoint that looks right is worse than a blank row.

What You Get Back

The CSV has a name column if any line had a name, an input column with the coordinate as it was read, the result, and a note column if any line failed. The result is split into the columns a spreadsheet or GIS import wants:

Output formatColumnsExample
Decimal degrees, DMS, DDMlatitude, longitude32.312064 and −114.539201
UTMutm_zone, easting, northing11S, 731676, 3577687
MGRSmgrs11SQR3167577686
USNGusng11S QR 31675 77686
GARSgars131LE29
Plus Codeplus_code85478F66+R8
Swiss Grid LV95 or LV03An easting and a northing column2600104 and 1199880
British grid referencegrid_referenceNN 16677 71280
British grid easting and northingeasting, northing216677 and 771280

Decimal degrees are written to six decimal places, about a tenth of a meter. UTM is written to the whole meter, and MGRS and USNG to their full ten digits, which is also one meter. The GPX file holds only the lines that converted, each as a waypoint with its name.

Check Before You Trust It

A conversion can be arithmetically perfect and still put a point in the wrong place, because the list was wrong going in. The map catches most of these in seconds.

  • A missing minus sign. 32.312064, 114.539201 is a valid position. It is in China. West longitudes and south latitudes need a minus sign or a W or S.
  • The wrong zone. The same easting and northing in the next UTM zone is about six degrees of longitude away.
  • The wrong datum. The converter works on WGS 84, the datum GPS uses. The same numbers taken from an old NAD 27 map can sit a couple of hundred meters off. Datum 101 covers how to tell.
  • Minutes typed as decimals. 32.1843 meaning 32° 18' 43" will convert as decimal degrees and land fourteen kilometers or more away. If a list is in DMS, choose DMS. Latitude and Longitude Formats shows how to tell the three apart.

Then spot-check one line you know: a trailhead, a summit, a road junction. If that one is right and the rest sit where you expect on the map, the list is good.

Doing It in a Spreadsheet Instead

One conversion is simple enough for a formula. Degrees, minutes, and seconds become decimal degrees by dividing: with degrees in A2, minutes in B2, and seconds in C2,

=A2 + B2/60 + C2/3600

so 32° 18' 43.43" is 32 + 18/60 + 43.43/3600 = 32.312064. Make the result negative for a south latitude or a west longitude. For degrees and decimal minutes, drop the seconds term.

Grid formats are a different matter. UTM, MGRS, and the national grids are map projections, and turning them into latitude and longitude takes a page of series arithmetic that is easy to get subtly wrong in a spreadsheet. Use a converter or GIS software for those.

Frequently Asked Questions

How many coordinates can I convert at once?

There is no set number of lines. A file you load can be up to 2 MB, which is tens of thousands of lines, and a list that size converts in a second or two. The table on the page shows the first 200 rows; the CSV and GPX downloads include all of them.

How do I convert UTM to latitude and longitude in bulk?

Choose UTM as the input format and decimal degrees as the output, paste the list with the zone on each line, and convert. If the lines have only eastings and northings, enter the zone once in the zone box. The worked example above shows the result.

Can I convert an Excel file?

Not the .xlsx file itself. Copy the cells and paste them into the list box, or save the sheet as CSV and load that. A header row is recognized.

Can the list mix formats?

No. Each run reads one input format. Sort the list by format and convert each part separately; lines in another format are marked and left blank, not converted wrongly.

Can I turn the list into a GPX file?

Yes. Set the output format to decimal degrees and use Download GPX. Each converted line becomes a waypoint with its name, ready for a GPS unit or a mapping app. To edit the names or choose symbols afterward, open the file in the Waypoint Editor.

Which datum does it use?

WGS 84 for latitude and longitude, UTM, MGRS, USNG, GARS, and Plus Codes. The Swiss and British grids are on their own national datums, and the converter makes that shift for you in both directions.

Is my list uploaded?

No. The conversion runs in your browser, and the list is not sent anywhere. The map preview loads its background from OpenStreetMap for the area shown, as any online map does.

Related Tools and Guides