What are these coordinate formats?

A place on the Earth has a latitude, how far north or south of the equator it is, and a longitude, how far east or west of the prime meridian it is. Both are angles in degrees, which the converters write in three ways. Decimal degrees use one number each, with a minus sign for south and west. DMS splits each angle into degrees, minutes and seconds, where 1° = 60′ and 1′ = 60″. DDM uses degrees and minutes with decimals.

Grids and location codes write a place in other ways:

  • UTM splits the Earth into 60 zones, numbered from west to east, and latitude bands, lettered from C in the south to X in the north. It gives a place as its zone and band, then its easting and northing in meters.
  • MGRS is built on UTM. It names the grid zone, then a 100 km square with two letters, then the easting and northing inside that square. Around the poles, where UTM stops, it uses the UPS grid, with the letters A and B in the south and Y and Z in the north.
  • Plus codes, also called Open Location Codes, and geohashes write a place as a short code of letters and digits. Each character narrows down the area the code stands for.
  • Maidenhead locators, also called QTH locators, write a place as pairs of characters: a field, a square, a subsquare, and so on.
  • OS grid references use the Ordnance Survey's National Grid of Great Britain: two letters for a 100 km square, then the easting and northing inside it.

Here is the same place in London in each format:

Format Example What the values are
Decimal degrees 51.500729, -0.124625 Latitude and longitude in degrees, negative to the south and west
DMS 51°30'02.62"N 0°07'28.65"W Degrees, minutes and seconds, with N or S and E or W
DDM 51°30.044'N 0°07.478'W Degrees and minutes with decimals, with N or S and E or W
UTM 30U 699566 5709431 Zone and latitude band, then easting and northing in meters
MGRS 30U XC 99565 09430 Grid zone, 100 km square, then easting and northing in that square
Plus code 9C3XGV2G+75 An area of the plus code grid
Geohash gcpuvpmm2p8 A cell of the geohash grid
Maidenhead locator IO91wm Field, square and subsquare
OS grid reference TQ 30268 79643 100 km square, then easting and northing in that square

Tool description

Every coordinate converter here converts between all nine formats and works the same way, from the general Coordinate Converter to the ones for a single pair, such as DMS to decimal degrees, UTM to MGRS, or plus code to decimal degrees: each starts on the formats in its name, and the Source and Target menus switch to any other. Paste one coordinate, or a whole list with one per line. The result appears as you type, ready to copy. Each line of the result is the same line of the input converted, and blank lines stay blank, so the rows stay lined up with the ones you pasted. The swap button turns the conversion around and makes the result the new input.

When a line can't be converted, the error says what's wrong with it, and in a list, which line it's on. Coordinates are converted in your browser.

Examples

Source Input Target Result
DMS 40°42'46.08"N 74°00'21.60"W Decimal degrees 40.712800, -74.006000
Decimal degrees -33.8688, 151.2093 DMS 33°52'07.68"S 151°12'33.48"E
DDM N 40° 42.768 W 074° 00.360 DMS 40°42'46.08"N 74°00'21.60"W
Decimal degrees 40.7128, -74.0060 DDM 40°42.768'N 74°00.360'W
Decimal degrees 40.7128, -74.0060 UTM 18T 583959 4507351
UTM 56H 334369 6250948 Decimal degrees -33.868803, 151.209304
UTM 18T 583959 4507351 MGRS 18T WL 83959 07351
MGRS 18T WL 83959 07350 UTM 18T 583959 4507350
Decimal degrees 90, 0 MGRS Z AH 00000 00000
Decimal degrees 40.7128, -74.0060 Plus code 87G7PX7V+4J
Plus code 87G7PX7V+4J Decimal degrees 40.712813, -74.005938
Geohash dr5regw3ppy Decimal degrees 40.712799, -74.006000
Decimal degrees 59.91, 10.75 Maidenhead locator JO59jv
OS grid reference TQ 30268 79643 Decimal degrees 51.500725, -0.124619
Decimal degrees 55.9533, -3.1883 OS grid reference NT 25897 74001

A list converts line by line. These decimal degrees:

40.7128, -74.0060
51.500729, -0.124625

-33.8688, 151.2093

become this UTM:

18T 583959 4507351
30U 699566 5709431

56H 334369 6250948

What you can paste

  • Decimal degrees, DMS and DDM: whichever of the three is the source, the converters read all three, so 40.7128, -74.0060, 40°42'46.08"N 74°00'21.60"W and N 40° 42.768 W 074° 00.360 are the same place.
    • The latitude comes first, unless the letters N, S, E and W say otherwise, as in 74.006 W 40.7128 N. The letters can go before the latitude and the longitude, as in N 40.7128 W 74.006, or after them.
    • A comma, a semicolon, a space or a tab can separate the latitude and the longitude.
    • Degrees, minutes and seconds can be marked with °, ' and ", with ′ and ″, with the letters d, m and s, or with colons, as in 40:42:46.08N 74:00:21.6W. Spaces alone work too: 40 42 46.08 N 74 0 21.6 W.
    • Decimal commas work when a space or a semicolon separates the latitude and the longitude: 40,7128 -74,0060 or 40,7128; -74,0060.
    • A third number, such as a height, a label such as Lat:, and hemisphere letters other than N, S, E and W show an error.
  • UTM: the zone, from 1 to 60, then the latitude band, from C to X, or the hemisphere as N, S, north or south, then the easting and the northing in meters. 18T 583959 4507351, 18 north 583959 4507351 and zone 18T 583959mE 4507351mN all work. Results always have the latitude band.
  • N and S in UTM: N always means north of the equator. S is both latitude band S, from 32°N to 40°N, and the southern hemisphere. It's read as band S when the easting and northing are in band S, so 54S 388433 3949290 is 35.681200, 139.767096, and as the southern hemisphere otherwise, so 56S 334369 6250948 is -33.868803, 151.209304. Some eastings and northings fit both, such as those of 21S 441138 4272240, which reads as band S. For a place south of the equator, write its latitude band, from C to M, or the word south: 21F 441138 4272240 or 21 south 441138 4272240.
  • MGRS: with or without spaces, in any case, with 0 to 10 digits, half for the easting and half for the northing. 18TWL8395907350 is a 1 m square, 18T WL 8307 a 1 km square, and 18TWL the whole 100 km square. References around the poles start with A, B, Y or Z.
  • Plus codes: full codes of any length, in any case, padded ones such as 87G70000+ too. Text around a full code, such as the place Google Maps writes after it (87G7PX7V+4J New York), is left out. A short code such as PX7V+4J leaves out the start of the full code and needs a nearby place to find it, which the converters can't look up, so look up the full code, like 87G7PX7V+4J, on plus.codes and enter that.
  • Geohashes: up to 12 characters, in any case.
  • Maidenhead locators: 2, 4, 6, 8 or 10 characters, in any case, such as FN20 or FN20xr.
  • OS grid references: two letters and up to 10 digits, with or without spaces, such as TQ 30268 79643, TQ3026879643 or TQ 302 796, or the easting and northing in meters, such as 530268, 179643.

How it works

Each line is read into a latitude and longitude, then written in the target format. Latitudes and longitudes are read and written on the WGS 84 datum, the model of the Earth they're measured on, and so are UTM, MGRS, plus codes, geohashes and Maidenhead locators. OS grid references are on another datum, OSGB36. The converters go between OSGB36 and WGS 84 with a Helmert transformation, not the Ordnance Survey's OSTN15 grid, so their OS grid references can differ slightly from those of the Ordnance Survey's own conversion.

Results are written like this:

  • Decimal degrees with 6 decimals, the latitude first.
  • DMS with the seconds to 2 decimals, 0.01″, and DDM with the minutes to 3 decimals, 0.001′.
  • UTM with the easting and northing rounded to 1 m.
  • MGRS and OS grid references to 1 m, with 5 digits each for the easting and the northing. The digits are cut off rather than rounded, as both systems have it, so 40.7128, -74.0060 is 18T 583959 4507351 in UTM but 18T WL 83959 07350 in MGRS.
  • Plus codes with 10 digits, an area 1/8000° on each side.
  • Geohashes with 11 characters, so decimal degrees converted to a geohash and back change by 1 in the 6th decimal at most.
  • Maidenhead locators with 6 characters: the field, the square and the subsquare, 5′ of longitude by 2.5′ of latitude.

A grid square or a code stands for an area, and converts to the center of it. So converting a place to a code and back gives the center of the code's area, not the place: 40.7128, -74.0060 is FN20xr, and FN20xr converts to 40.729167, -74.041667. A shorter code or reference stands for a larger area, and converts to the center of that.

UTM covers latitudes from 80°S to 84°N, and a place outside that range shows an error. MGRS goes on to the poles. UTM and MGRS convert to each other directly, without going through degrees, so the meters don't change: 18T WL 83959 07350 becomes 18T 583959 4507350. An MGRS reference with fewer digits converts to the center of its square: 18TWL8307 becomes 18T 583500 4507500.

Tips

  • To convert the latitude and longitude columns of a spreadsheet, copy both columns at once. Spreadsheet apps copy the cells of a row with a tab between them, which the converters read, and blank rows stay blank in the result, so you can paste it back next to the columns.
  • Without N, S, E and W, the first number is always the latitude, so -74.0060, 40.7128 converts as latitude -74.006. When your coordinates have the longitude first, swap the columns, or add the letters: 74.006 W 40.7128 N.
  • For the larger square around a place, drop the same number of digits from the end of the easting and the northing of an MGRS or OS grid reference: TQ 302 796 is the 100 m square that holds TQ 30268 79643. Characters dropped from the end of a geohash, or pairs from the end of a Maidenhead locator, work the same way.