CDCodDepot
Categories

Β© 2026 CodDepot. All rights reserved.

HomeCategoriesPrivacy PolicyTerms
  1. Home
  2. /
  3. Marine & Maritime Tools
  4. /
  5. AIS Message Encoder
πŸ“»

AIS Message Encoder

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

Share𝕏Post on XinLinkedIn

NMEA sentence

!AIVDM,1,1,,A,15M67F@P1sG@9s0K;P83Ojmp0000,0*14

Encoding steps

  1. 1. Pack fields into 168 bits
    000001000101011101000110000111010110010000100000000001111011010111010000001001111011000000011011001011100000001000000011011111110010110101111000000000000000000000000000
  2. 2. ASCII-armor in 6-bit groups

    payload = 15M67F@P1sG@9s0K;P83Ojmp0000 (fill bits = 0)

  3. 3. Build sentence body

    AIVDM,1,1,,A,15M67F@P1sG@9s0K;P83Ojmp0000,0

  4. 4. XOR checksum

    *14

Was this tool useful?

Your vote is saved on this device only.

About AIS Message Encoder

The AIS Message Encoder builds a valid AIS Type 1 position report from plain form inputs. Enter an MMSI, navigation status, speed over ground, course over ground, latitude, longitude, and true heading, and the tool packs each field into its correct bit width, ASCII-armors the bitstream into 6-bit payload characters, computes the NMEA checksum, and assembles a complete !AIVDM sentence. It also shows each encoding step, so you can see exactly how the raw values become the final message.

It is built for marine software developers, AIS integrators, and students learning the ITU-R M.1371 standard who need to generate test sentences or verify their own encoders. Use this one because it is free, requires no signup, and runs entirely in your browser: your vessel data and coordinates are never uploaded to a server.

How to use

  1. Enter the vessel MMSI and select a navigation status (0–15).
  2. Fill in speed over ground, course over ground, latitude, longitude, and true heading.
  3. Review the live encoding steps showing bit packing and the 6-bit payload.
  4. Copy the generated !AIVDM sentence for use in your tests or feeds.

Features

  • βœ“Encodes AIS Type 1 position reports
  • βœ“Live form-to-sentence updates as you type
  • βœ“Shows bit packing and 6-bit ASCII armoring
  • βœ“Automatic NMEA fill-bit and checksum calculation
  • βœ“Full ITU-R M.1371 navigation status list
  • βœ“Runs privately in your browser

Frequently asked questions

Is my vessel data sent anywhere?+

No. All encoding happens locally in your browser, so MMSI values and coordinates never leave your device. The tool is free and needs no account.

Which AIS message type does this generate?+

It produces a Type 1 position report (Class A scheduled position), packed into a single-fragment !AIVDM sentence with the standard NMEA checksum.

What do the fill bits in the output mean?+

Fill bits indicate how many padding bits were added to the final 6-bit group so the payload aligns to a character boundary. The value (0–5) appears after the payload in the sentence.

How are latitude and longitude encoded?+

Coordinates are scaled to 1/10000 minute and stored as signed integers, 27 bits for latitude and 28 bits for longitude, exactly as the AIS standard specifies.

Can I use the output to test my own AIS decoder?+

Yes. The generated sentence is a standards-compliant !AIVDM message you can feed directly into a decoder to confirm it reads MMSI, position, speed, and course correctly.

Related tools

πŸ“‘

AIS Message Decoder

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

🧭

NMEA 0183 Sentence Parser

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

πŸ›Ÿ

NMEA 0183 Checksum Calculator

Validate or generate the XOR checksum for any NMEA 0183 sentence, with step-by-step XOR.