MarineActivityCoastal AIS, clearly readOpen live map

Tools · Position converter

AIS position converter

Turn a latitude and longitude into every format you are likely to meet: decimal degrees, degrees and decimal minutes, degrees-minutes-seconds, and the raw integers inside an AIS message. Runs in your browser; nothing is sent anywhere.

Input format

How AIS stores a position

An AIS position report does not carry degrees. It carries a whole number often-thousandths of a minute of arc: 60 minutes to a degree, 10,000 units to a minute, so 600,000 units per degree. West and south are negative.

QuantityValue
Units per degree600,000
Resolution1/10,000 minute, about 0.185 m of latitude
Longitude field28-bit signed integer, ±108,000,000 (±180°)
Latitude field27-bit signed integer, ±54,000,000 (±90°)
Longitude “not available”108,600,000 (181°)
Latitude “not available”54,600,000 (91°)

Example: a raw latitude of 30,916,380 is 30,916,380 ÷ 600,000 = 51.52730° north, or 51° 31.638′ N. Type 27, the long-range report, is the exception: it uses 1/10 minute, so 6,000 units per degree and a much coarser position. Check the message type pagebefore assuming 600,000.

The formats it converts between

  • Decimal degrees, 51.5273° N: what maps, GPS apps and most software use.
  • Degrees and decimal minutes, 51° 31.638′ N: widely used on chartplotters and nautical charts.
  • Degrees, minutes, seconds, 51° 31′ 38.3″ N: common on paper charts and in older documents.
  • Raw AIS, 30916380: what a receiver’s NMEA output actually contains. Paste the decoded integers from the AIS sentence decoder here to cross-check them.

Questions

What are the big numbers in a raw AIS position?

AIS stores latitude and longitude as signed integers in units of 1/10,000 of a minute of arc. Divide by 600,000 to get decimal degrees. Class A and Class B position reports (types 1, 2, 3, 18 and 19) carry longitude in 28 bits and latitude in 27 bits.

What do 181 and 91 mean?

A longitude of 181° (raw 108,600,000) and a latitude of 91° (raw 54,600,000) are the “position not available” values. They are outside the real range of ±180° and ±90°, so they can never be a genuine position. A map that plots them is showing an error.

Why do two position formats disagree by a few metres?

Usually rounding. One minute of latitude is one nautical mile (1,852 m), so a digit in the fourth decimal place of a minute is about 0.2 m. Rounding the same position to whole seconds moves it by up to about 15 m. Convert once, from the full-precision value.

Does a valid position mean the ship was really there?

No. The converter checks that numbers are in range, not that a GPS fix was good. A transponder with no fix may send stale or default values, and the position accuracy flag in the report says how the fix was obtained.

See every field in a position report in the position report guide, or browse the other AIS tools.

Amazon affiliate picks

Get real AIS data to decode

Decoding is more satisfying on messages you captured yourself. A receive-only SDR or a network gateway gets raw AIS and instrument data onto a computer.

As an Amazon Associate, MarineActivity earns from qualifying purchases. Amazon is the seller; we do not set prices, hold stock or fulfil orders. Prices and availability can change. Affiliate disclosure

Explore marine gear →