802.1Q tag decoder and trunk VLAN calculator
Decode an 802.1Q tag or a frame's start: TPID, PCP with its traffic type, DEI and VID with the bits laid out, stacked 802.1ad tags and the EtherType that follows, named from IANA's list. Or paste the trunk lines of both ends, in Cisco IOS XE, Junos, AOS-CX, RouterOS, Switch Engine, Fabric Engine, Arista EOS or Huawei VRP syntax, and see which VLANs cross, which one end drops, and where the native VLANs disagree.
NetworkingKept in this browser · My desk
Two hexadecimal digits an octet, with spaces, colons, hyphens or dots between them (a capture tool's hex view pastes as it is). Auto reads octets that start with 0x8100, 0x88A8 or 0x9100 as a tag, and anything else of 14 octets or more as a frame's start: destination MAC, source MAC, then tags.
Runs in your browser: nothing you paste leaves this page.
Paste the octets of a tag or of a frame's start, or press Example for the course lab's voice VLAN.
References
- IEEE P802.1ad/D2.4, Provider Bridges (unapproved draft amendment to IEEE Std 802.1Q, 27 September 2004): clause 9 and Tables 9-1, 9-2, 6-5 and G-2
- IEEE 802.1, ieee802-dot1q-types YANG module, revision 2023-10-26: c-vlan (81-00), s-vlan (88-A8), vlanid 1..4094, vlan-index-type, priority-type, pcp-selection-type
- IEEE 802.1, ieee802-dot1q-bridge YANG module, revision 2023-10-26: pvid (default 1) and use-dei
- IEEE 802.1, IEEE8021-Q-BRIDGE-MIB (LAST-UPDATED 2022-11-08): ieee8021QBridgePvid
- IEEE Standards Association, IEEE 802.1Q-2022, Bridges and Bridged Networks: Active Standard
- RFC 9542, IANA Considerations and IETF Protocol and Documentation Usage for IEEE 802 Parameters, April 2024 (BCP 141; obsoletes RFC 7042): sections 2.1.1, 2.1.4 and 3
- IANA, IEEE 802 Numbers: Ethertypes (last updated 2024-11-03)
- HPE Aruba Networking, AOS-CX 10.14 Quality of Service Guide (4100i, 6000, 6100), End-to-end QoS behavior: CoS and traffic type (read via WebFetch)
- Juniper Networks, Bridging and VLANs (Junos OS, Layer 2 networking): VLAN IDs, TPIDs, native VLAN on switches with ELS
- Juniper Networks, 802.1Q VLAN IDs and Ethernet Interface Types
- Juniper Networks, Ethernet Switching User Guide (Junos OS), published 2026-09-23: vlan members ranges and set adding to the members
- Cisco, VLAN Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9300 Switches), Configuring VLAN Trunks, updated 31 July 2025 (read via WebFetch; read again in a browser on 2026-11-08: the site refuses automated reads)
- Cisco, VLAN Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9300 Switches), Configuring VLANs, updated 31 July 2025 (read via WebFetch)
- Cisco, Command Reference, Cisco IOS XE 17.18.x (Catalyst 9300 Switches), VLAN Commands: switchport trunk (read in a browser on 2026-11-08: the site refuses automated reads)
- Cisco, Command Reference, Cisco IOS XE 17.17.x (Catalyst 9300 Switches), VLAN Commands: switchport trunk (read via WebFetch)
- HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide (6300/6400): vlan trunk allowed (read via WebFetch; read again in a browser on 2026-11-08: the site refuses automated reads)
- HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide (6300/6400): vlan trunk native (read in a browser on 2026-11-08: the site refuses automated reads)
- HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide (6300/6400): vlan trunk native tag (read in a browser on 2026-11-08: the site refuses automated reads)
- MikroTik, RouterOS Manual 7.24: Bridging and Switching, Bridge VLAN Filtering
- Extreme Networks, Switch Engine v33.7.1 Command References: configure vlan add ports (p. 1569), configure vlan tag (p. 1605), configure vlan untagged-ports auto-move (p. 1608), create vlan (p. 1782)
- Extreme Networks, Fabric Engine v9.4 User Guide: Add or Remove Ports in a VLAN
- Extreme Networks, Fabric Engine v9.4 Command References: default-vlan-id (p. 139), untag-port-default-vlan (p. 345), encapsulation dot1q
- Arista Networks, EOS 4.37.0F User Manual, Virtual LANs (VLANs): switchport mode, switchport trunk allowed vlan, switchport trunk native vlan (read in a browser on 2026-11-08: the site refuses automated reads)
- Huawei, S5700 and S6700 V200R025C00 Command Reference, VLAN Configuration Commands: port link-type, port trunk allow-pass vlan, port trunk pvid vlan (read in a browser on 2026-11-08: the site refuses automated reads)
- Huawei, S5700 and S6700 V200R025C00 Configuration Guide - Ethernet Switching, VLAN Configuration, Adding and Removing VLAN Tags: Table 4-2 (read in a browser on 2026-11-08: the site refuses automated reads)
- RFC Editor, RFC index (XML): the current status of RFC 9542 and RFC 7042