HomeLoRaWAN Encode/Decode

LoRaWAN Encode/Decode

Online LoRaWAN encode/decode tool with PHYPayload parsing, uplink/downlink frame building, and airtime calculation for LPWAN debugging, protocol study, and link optimization.

Paste PHYPayload captured from gateways, network servers, or packet forwarder logs

Example Packets

Decoded Result

Enter packet data to decode LoRaWAN frame automatically

LoRaWAN Protocol Guide

Overview

LoRaWAN is a MAC protocol for low-power wide-area networks. It builds on LoRa modulation to provide long-range and low-power communication for smart city, agriculture, industrial IoT, and utility metering scenarios.

PHYPayload Structure

Each LoRaWAN packet contains MHDR, MACPayload, and MIC. MHDR defines message type and protocol version, while MIC protects integrity and authenticity.

MHDR (1 byte)DevAddr (4 bytes)FCtrl (1 byte)FCnt (2 bytes)FOpts (0-15 bytes)FPort (0-1 byte)FRMPayload (N bytes)MIC (4 bytes)

Message Types

Join Request and Join Accept are used for OTAA activation. Data frames carry application payloads and can be confirmed or unconfirmed. Proprietary frames support vendor extensions.

MTypeBinaryDescription
0000x00Join Request
0010x20Join Accept
0100x40Unconfirmed Data Up
0110x60Unconfirmed Data Down
1000x80Confirmed Data Up
1010xA0Confirmed Data Down
1100xC0Rejoin Request
1110xE0Proprietary

MAC Payload

For data frames, MACPayload includes FHDR, optional FPort, and FRMPayload. FHDR contains DevAddr, FCtrl, FCnt, and optional FOpts.

Security Model

LoRaWAN uses AES-128 with two session keys: NwkSKey for network security (MIC and MAC commands) and AppSKey for application payload encryption.

Airtime Calculation

Airtime depends on SF, BW, CR, payload size, and header mode. Accurate airtime helps duty-cycle compliance, link budgeting, and network capacity planning.

Regional Parameters

LoRaWAN regional plans such as EU868, US915, AS923, and AU915 define channels, data rates, and regulatory limits. Always follow local specifications in deployment.

Data is processed locally in your browser by default and will not be uploaded to any server. Upload will be clearly indicated if required.

© 2026 See-Tool. All rights reserved. | Contact Us