CDCodDepot
Categories

Β© 2026 CodDepot. All rights reserved.

HomeCategoriesPrivacy PolicyTerms
  1. Home
  2. /
  3. Marine & Maritime Tools
  4. /
  5. AIVDM / AIVDO Sentence Creator
πŸ“‘

AIVDM / AIVDO Sentence Creator

Build and encode complete AIVDM/AIVDO NMEA sentences for all major AIS message types.

Share𝕏Post on XinLinkedIn

Fields

NMEA sentence

!AIVDM,1,1,,B,139Lg1hP1sP:P=pKu?p3Jjip0000,0*72

Round-trip validation

βœ… encode β†’ decode matches
  • NMEA checksumvalid
  • Bit payload168 bits
  • Message Type1
  • MMSI211234567

Binary payload

168 bits Β· fillBits 0
000001 000011 001001 011100 101111 000001 110000 100000 000001 111011 100000 001010 100000 001101 111000 011011 111101 001111 111000 000011 011010 110010 110001 111000 000000 000000 000000 000000

Field breakdown

FieldBitsValueBinary
Message Type61000001
Repeat Indicator2000
MMSI30211234567001100100101110010111100000111
Navigation Status400000
Rate of Turn8-12810000000
SOG (raw)101230001111011
Position Accuracy111
Longitude (raw)2813767000000000101010000000110111100
Latitude (raw)2729315040001101111110100111111100000
COG (raw)12875001101101011
True Heading988001011000
Time Stamp660111100
Maneuver Indicator2000
Spare30000
RAIM Flag100
Radio Status1900000000000000000000
Other formats
Python bytes
b'!AIVDM,1,1,,B,139Lg1hP1sP:P=pKu?p3Jjip0000,0*72\r\n'
JavaScript string
'!AIVDM,1,1,,B,139Lg1hP1sP:P=pKu?p3Jjip0000,0*72\r\n'
Hex dump
21 41 49 56 44 4d 2c 31 2c 31 2c 2c 42 2c 31 33 39 4c 67 31 68 50 31 73 50 3a 50 3d 70 4b 75 3f 70 33 4a 6a 69 70 30 30 30 30 2c 30 2a 37 32 0d 0a
Batch generator (Type 1)
Reference tables

Navigation status

0Under way using engine
1At anchor
2Not under command
3Restricted manoeuvrability
4Constrained by draught
5Moored
6Aground
7Engaged in fishing
8Under way sailing
9Reserved (HSC)
10Reserved (WIG)
11Towing astern
12Pushing ahead
13Reserved
14AIS-SART / MOB / EPIRB
15Not defined (default)

EPFD type

0Undefined
1GPS
2GLONASS
3Combined GPS/GLONASS
4Loran-C
5Chayka
6Integrated Navigation
7Surveyed
8Galileo

Aid type (Type 21)

0Default, not specified
1Reference point
2RACON
3Fixed structure off shore
4Spare
5Light, without sectors
6Light, with sectors
7Leading Light Front
8Leading Light Rear
9Beacon, Cardinal N
10Beacon, Cardinal E
11Beacon, Cardinal S
12Beacon, Cardinal W
13Beacon, Port hand
14Beacon, Starboard hand
15Beacon, Preferred Port
16Beacon, Preferred Starboard
17Beacon, Isolated danger
18Beacon, Safe water
19Beacon, Special mark
20Cardinal Mark N
21Cardinal Mark E
22Cardinal Mark S
23Cardinal Mark W
24Port hand Mark
25Starboard hand Mark
26Preferred Channel Port hand
27Preferred Channel Starboard hand
28Isolated danger
29Safe Water
30Special Mark
31Light Vessel / LANBY / Rigs

Ship type

0Not available
20WIG (Wing in ground)
21WIG, Hazardous A
22WIG, Hazardous B
23WIG, Hazardous C
24WIG, Hazardous D
30Fishing
31Towing
32Towing (large)
33Dredging or underwater ops
34Diving ops
35Military ops
36Sailing
37Pleasure craft
40HSC (High-speed craft)
41HSC, Hazardous A
42HSC, Hazardous B
43HSC, Hazardous C
44HSC, Hazardous D
49HSC, no info
50Pilot vessel
51Search and rescue
52Tug
53Port tender
54Anti-pollution
55Law enforcement
58Medical transport
59Noncombatant ship
60Passenger
61Passenger, Hazardous A
62Passenger, Hazardous B
63Passenger, Hazardous C
64Passenger, Hazardous D
69Passenger, no info
70Cargo
71Cargo, Hazardous A
72Cargo, Hazardous B
73Cargo, Hazardous C
74Cargo, Hazardous D
79Cargo, no info
80Tanker
81Tanker, Hazardous A
82Tanker, Hazardous B
83Tanker, Hazardous C
84Tanker, Hazardous D
89Tanker, no info
90Other
99Other, no info

Message type families

  • 1, 2, 3 β€” Class A position report
  • 4 β€” Base station report
  • 5 β€” Static & voyage data
  • 18, 19 β€” Class B position
  • 21 β€” Aid to Navigation
  • 24 β€” Class B static (Part A + B)

Special sentinel values

  • SOG raw 1023 β†’ not available
  • COG raw 3600 β†’ not available
  • Heading 511 β†’ not available
  • Lon > 180 / Lat > 90 β†’ not available
  • Timestamp 60..63 β†’ manual / N/A / DR / inop
  • ROT raw βˆ’128 β†’ not available
AIS Decoder β†’AIS β†’ GeoJSON β†’MMSI Decoder β†’

Was this tool useful?

Your vote is saved on this device only.

About AIVDM / AIVDO Sentence Creator

The AIVDM / AIVDO Sentence Creator builds and encodes complete NMEA AIS sentences from the fields you enter. Choose a message type β€” Class A position reports (Types 1, 2, 3), base station reports (Type 4), static and voyage data (Type 5), Class B reports (Type 18), aids to navigation (Type 21) and Class B static data (Type 24 Parts A and B) β€” fill in values like MMSI and coordinates, and get a ready-to-use sentence with the correct 6-bit payload, fill bits and NMEA checksum.

It is made for AIS developers, marine software testers, equipment integrators and students who need valid sample sentences without a live transmitter. Pick the AIVDM or AIVDO talker and channel A or B, generate single or batch output, and inspect the bit-field breakdown. It is completely free and runs entirely in your browser, so every MMSI and position you enter stays on your machine and is never uploaded.

How to use

  1. Select the AIS message type you want to build (Type 1-5, 18, 21 or 24).
  2. Enter the field values such as MMSI, position, speed and voyage data.
  3. Choose the AIVDM or AIVDO talker and radio channel A or B.
  4. Copy the generated sentence, complete with payload, fill bits and checksum.
  5. Review the bit-field breakdown and round-trip check to confirm encoding.

Features

  • βœ“Covers all major AIS message types
  • βœ“Correct 6-bit payload and fill-bit encoding
  • βœ“Automatic NMEA checksum calculation
  • βœ“Multipart fragmentation for long messages
  • βœ“Field-by-field bit breakdown view
  • βœ“Single or batch sentence generation

Frequently asked questions

Which AIS message types can I create?+

You can build Class A position reports (Types 1, 2 and 3), base station reports (Type 4), static and voyage data (Type 5), Class B position reports (Type 18), aids to navigation (Type 21) and Class B static data (Type 24, Parts A and B).

What is the difference between AIVDM and AIVDO?+

AIVDM sentences report data received from other vessels and stations, while AIVDO sentences carry your own ship's transmitted data. You can switch the talker with a single setting before generating.

Does the tool handle multipart sentences and fill bits?+

Yes. Longer payloads that exceed a single sentence are automatically split into numbered fragments, and the correct fill-bit count is placed on the final fragment along with a valid checksum.

Is my data uploaded anywhere?+

No. The tool is free and runs entirely client-side in your browser, so every MMSI, coordinate and field value you enter stays on your device and is never sent to a server.

Can I trust the encoded output?+

Each sentence is encoded per the ITU-R M.1371 6-bit scheme, and a round-trip check decodes the result back to verify the checksum, message type and MMSI match your input.

Related tools

πŸ“‘

AIS Message Decoder

Decode AIS NMEA sentences (Types 1–3 position reports and Type 5 voyage data) at the bit level.

πŸ“»

AIS Message Encoder

Build a valid AIS Type 1 position report from form inputs with step-by-step encoding.

🧭

NMEA 0183 Sentence Parser

Auto-detect and decode 17+ NMEA 0183 sentence types with checksum validation.