HID Report ViewerWebHID Descriptor & Raw Report Debugger

Connect a USB HID device in Chrome or Edge to read its vendor ID, product ID, and report descriptor. Watch raw reports in HEX, measure the report rate, and send Output or Feature reports.

Device connection

This browser does not support WebHID. Open this page in Chrome or Edge on a desktop computer, over HTTPS or from localhost.

Select a device to see its report descriptor and live report monitor.

Read HID Report Descriptors and Raw USB Reports in Your Browser

When you write firmware for a custom keyboard, macropad, or gaming device, you often need to answer two questions: is the device sending the bytes I expect, and why does the OS handle it the way it does? This tool answers both from a browser tab. It uses the WebHID API, so there is nothing to install and no driver to set up.

After you pick a device, the tool shows its vendor ID, product ID, and report descriptor (Input, Output, and Feature reports) as a collapsible tree. As you press keys or move controls, each incoming report is added to a live log in HEX or decimal. Any byte that differs from the previous report with the same Report ID is highlighted, so you can see which byte changes with which key.

You can also read the report rate (reports received in the last second), send Output or Feature reports from a form, read a Feature report by ID, copy the latest report, and export the log as CSV.

Debugging Jobs This Tool Handles

Checking QMK Raw HID traffic

QMK's Raw HID interface uses a vendor-defined usage page (0xFF60 by default). Open that interface to confirm your host app and firmware exchange the bytes you intended.

Mapping macropad switches to report bytes

Press one switch at a time and watch which byte or bit changes. This confirms how your keymap maps to the report before you write host-side code.

Measuring the report rate

The counter shows how many reports arrived in the last second, so you can compare the result with the polling interval you configured (for example 125 Hz or 1000 Hz).

Sorting out a device the OS handles wrong

Check that the vendor and product IDs are what you set, and look for unexpected collections or report fields in the descriptor. That helps you decide whether the fault is in the hardware or the firmware.

Connect a Device and Start Reading

  1. Open this page in Chrome or Edge on a desktop computer and click Select HID device.
  2. Choose your device in the browser's chooser and click Connect. The vendor ID, product ID, and report descriptor tree appear.
  3. Use the device. Each incoming report is added to the log, and bytes that changed since the previous report with the same Report ID are highlighted.
  4. To test the other direction, enter a Report ID and hex bytes, choose Output or Feature, and click Send report. To read a Feature report, enter its ID and click Read.

Note: Some devices appear more than once in the chooser, one entry per HID interface. If you do not see the reports you expect, try the other entry.

Browser Support and Limits

  • WebHID works in Chromium-based desktop browsers such as Chrome and Edge. It is not available in Firefox, Safari, or mobile browsers.
  • The page must be loaded over HTTPS or from localhost. Otherwise the browser disables the device chooser.
  • Browsers block access to protected HID devices such as standard keyboards and mice.
  • The log keeps the latest 300 reports and shows the newest 40. The CSV export contains the stored 300 at most, with timestamps in milliseconds since the Unix epoch.
  • The report rate counts the reports your browser received, not USB frames. Many devices only send a report when something changes, so keep moving or pressing the control while you measure.
  • Sending a Report ID or length the firmware does not expect may make the device ignore the report or behave unexpectedly. Send only to devices you can safely reset.
  • Report data stays in your browser. Nothing you read or send is uploaded to this site.

HID Usage Page Quick Reference

Each collection in the descriptor tree starts with a Usage Page number. This table lists the common ones.

Usage PageNameTypical use
0x01Generic DesktopMice, joysticks, pointers, and keyboards as top-level devices
0x07Keyboard/KeypadKey codes for keyboards and keypads
0x08LEDIndicator lights such as Caps Lock and Num Lock
0x09ButtonMouse buttons and gamepad buttons
0x0CConsumerMedia keys such as volume and play/pause
0x0DDigitizersTouch screens, touchpads, and pen tablets
0xFF00–0xFFFFVendor-definedManufacturer-specific data, including QMK Raw HID

About vendor-defined pages
QMK's Raw HID interface uses a vendor-defined page. The standard does not define what these bytes mean, so you need your firmware source to interpret them.

Usage assignments vary by device and firmware. For the full list, see the HID Usage Tables published by USB-IF.

How WebHID and Report Descriptors Work

A short background on the API and on reading a descriptor, so the tree and the byte log make sense.

WebHID lets a web page talk to a HID device

WebHID is a browser API that lets a page read from and write to a USB HID device without a native app or driver. The user must pick each device in a browser prompt, and the page can only use devices that were granted. For firmware work, that means a small web page can double as a test or configuration tool.

Reading Usage Page, Usage, Report Size, and Report Count

A descriptor groups reports into collections. Inside each collection, Input, Output, and Feature reports list their fields.
The Usage Page is the broad category, the Usage is the specific meaning, Report Size is the number of bits per field, and Report Count is how many fields there are.
Size 1 bit and Count 8 gives one byte of eight on/off flags. Size 8 bits and Count 6 gives six one-byte values, as in a keyboard's key-code array.

What the report rate tells you

The tool counts reports received in the last second and refreshes the figure twice a second. A rate of 125 Hz means one report about every 8 ms, and 1000 Hz means one about every 1 ms.
This matches the device's polling rate only if it sends a report on every poll, which many devices do not. Treat the number as a quick check against your configured interval, not as a precise USB measurement.

Debugging QMK Raw HID

QMK's Raw HID feature exposes a vendor-defined interface (usage page 0xFF60) for custom data between the keyboard and a host program. Select that interface here to watch what the firmware sends, and use the Output form to send test packets. This lets you check both directions before your host app exists.

Common Problems and Fixes

Your everyday keyboard or mouse is not listed

You open the chooser looking for the keyboard or mouse you use every day, and it is missing or fails to open.

💡 See the solution▼
Browsers block standard keyboards and mice from WebHID. Devices with their own HID interface, such as custom keyboards, macropads, and boards running custom firmware, are usually available.

Select HID device does nothing on an HTTP page

On an internal test server served over plain HTTP, the button stays disabled or the chooser never opens, because WebHID needs a secure context.

💡 See the solution▼
Serve your own test pages over HTTPS or from localhost. This page already loads over HTTPS.

The device will not open

The tool shows an error that the device could not be opened, and no reports appear.

💡 See the solution▼
Another program may be holding the device, such as a vendor configurator or a different browser tab. Close it and select the device again. On Linux you may also need a udev rule that gives your user access to the device.

A send fails or the device stops responding after a send

You sent an Output or Feature report with a different length or Report ID than the firmware expects. The device returns an error or ignores the report.

💡 See the solution▼
Compare the Report ID, Report Size, and Report Count in the descriptor tree with your firmware source, then send exactly that number of bytes. Use Report ID 0 only if the device does not use report IDs. If unsure, start with read-only monitoring.

The same device appears twice, or two identical units look alike

One keyboard can show up as several entries, one per HID interface, and two units of the same model share a vendor ID, product ID, and name.

💡 See the solution▼
For multiple interfaces, check each entry's descriptor tree and pick the one whose usage page you need. For identical units, connect one at a time, or give each a different product name string in firmware so the list shows them apart.

Firefox, Safari, or a phone shows no way to connect

The page tells you the browser does not support WebHID, or Select HID device is disabled.

💡 See the solution▼
WebHID is available in desktop Chromium-based browsers only. Open the page in Chrome or Edge on a computer.

Questions About WebHID Access and Report Data

Q.What does the HID Report Viewer do?

Q.

A. It uses the WebHID API to connect to a USB HID device and shows its vendor ID, product ID, and report descriptor (the Input, Output, and Feature reports it defines). While you use the device, it lists the raw reports as bytes in HEX or decimal, so you can check that your firmware sends what you expect.

Q.Which browsers support WebHID?

Q.

A. WebHID works in Chromium-based desktop browsers such as Google Chrome and Microsoft Edge. Firefox and Safari do not support it, and neither do mobile browsers. The page must be served over HTTPS (or run on localhost).

Q.Why can't I select my regular keyboard or mouse?

Q.

A. Browsers block WebHID access to protected devices such as standard keyboards and mice, so they either do not appear in the chooser or cannot be opened. Custom keyboards, macropads, and other devices that expose their own HID interface usually work. If a device opens, you can read its reports.

Q.How is this different from a keyboard tester?

Q.

A. A keyboard tester shows which key you pressed. This tool shows the raw bytes behind the input: vendor and product IDs, the report descriptor, per-byte changes between reports, report rate, and a form for sending Output and Feature reports. It is built for people writing or debugging firmware.

Q.What is a HID report descriptor, and how do I read it?

Q.

A. The report descriptor tells the host how a device's data is laid out. Read each report from the top: Usage Page and Usage say what the data means, Report ID identifies the report, and Report Size (bits per field) times Report Count (number of fields) gives the field's length. For example, Size 1 and Count 8 is one byte of eight on/off flags.

Q.Is it safe to send Output and Feature reports?

Q.

A. Sending is limited to what the device accepts, such as an LED command or a custom setting. A report ID or length the firmware does not expect can make the device ignore it, return an error, or behave unexpectedly. Start by only reading, and send to a device you can safely reset.

Q.Is my data sent to your server?

Q.

A. No. The tool talks to your device through the browser's WebHID API and shows the results on the page. Report data and bytes you send are not uploaded or stored by this site.

User Feedback & Request

Your feedback
makes this tool better.

Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.

Send feedback