/writeups

Decoding Wooting profile codes

8 min read#reverse-engineering#keyboards

Wootility, Wooting’s keyboard software, lets you share a profile as a short code. I maintain a fork of an open-source Razer Synapse replacement, and I wanted to paste one of those codes and get a profile for a Razer Huntsman V3 out the other end. Here’s the format, how I worked it out, and where the two keyboards don’t agree.

Wooting doesn’t document any of this. I pulled the format out of the Wootility web app on 2026-10-21, and since it can change at any time, the importer stays strict and rejects anything it doesn’t recognise.

The code is not the profile

I thought the code was a packed, encoded profile. It isn’t. It’s 36 lowercase hex digits, and it’s an ID the server hands out: the profile that comes back has the same string in its guid field. There’s nothing in the code to decode, so the only thing I can check locally is its shape:

pub fn code_in(text: &str) -> Option<String> {
    text.split(|c: char| !c.is_ascii_hexdigit())
        .find(|run| run.len() == CODE_LEN)
        .map(str::to_ascii_lowercase)
}

Grabbing the first run of exactly 36 hex digits means you can paste a whole link and it still works. Older codes were UUIDs with dashes. Those are a different generation and I haven’t looked at them.

One unauthenticated request fetches the profile:

GET https://api.wooting.io/public/wootility/profiles?code=<code>

From a logged-out browser session it answered 200 with JSON. No token, no cookie. The response headers advertised a limit of 40 requests per 10 seconds and cache-control: private, and robots.txt disallows automated access. So the importer keeps it small: one request per paste, its own name in the User-Agent, one retry on a 429 or 5xx, and no caching.

The container

The body is { "data": { … } }. The JSON comes out of protobuf-ts, and that matters for exactly one reason: any field sitting at its protobuf default (0, false, "", []) just isn’t there. A missing rowNr is row 0, not an error.

field contents imported
version 15 in every sample checked
guid, name, desc the code, the profile name name
target { layout, device } device
analog global actuation and Rapid Trigger, per-key Rapid Trigger yes
customActuations per-key actuation points yes
remap null, or [base layer, Fn layer] base layer
akc advanced keys: Snappy Tappy, Rappy Snappy, DKS pairs only
dks empty in every sample; DKS sits in akc no
metadata, gamepad, rgb, lightbar icon, colours, lighting no

target.device is a number. I’ve seen three: 10 is the 80HE, 11 the 60HE, 12 the 80HE+. Anything else gets refused, because per-key data is useless if I don’t have that board’s matrix.

Keys are matrix positions

Every per-key value is addressed by { "rowNr": r, "colNr": c }. That’s the physical matrix of the source keyboard, not a keycode. So before I could do anything else, I needed a table from matrix position to key for each board.

Wootility handed it to me. With no remaps, remap is null. Change one key and it stores the whole layer: every position, with the code it types. So a profile with a single remap is a complete dump of the matrix. The 80HE is 6 rows by 21 columns. The 60HE has the same letter block, with Esc at the top left and Backspace, \, Enter and Right Shift one column further in. The 80HE+’s stock layer matched the 80HE’s at every position. Space takes up five adjacent columns as duplicates, and only the middle one (column 6) ever carried a setting.

Distances

All the actuation and sensitivity values are integers. My first guess at the unit was 1/16384 mm, and every imported key came in four times too shallow. So I stopped guessing. I built a test profile with keys set to depths I knew and read it back.

set in Wootility raw value
0.5 mm 2048
1.0 mm 4096
2.0 mm 8192
3.5 mm 14335

The unit is 1/4096 mm, and now and then a value lands one short of the round number. Wootility’s default actuation point reads 6144 (1.5 mm). Its default Rapid Trigger sensitivity reads 614, which is just under 0.15 mm.

Rapid Trigger

The analog block holds the globals: actPoint, rapidTriggerSensitivity, a rapidTrigger switch for keys that aren’t listed individually, and rapidTriggerStrictActuationRange. Strict means Rapid Trigger only works past the actuation point. Not strict means it works along the whole travel.

perKeyRapidTrigger is the awkward one. Under the same version it comes in two shapes, and my test profile has both:

[
  { "index": { "rowNr": 2, "colNr": 2 }, "value": true },
  { "index": { "rowNr": 2, "colNr": 8 },
    "value": { "sensitivity": 819, "secondarySensitivity": 2048, "strictActuationRange": true } }
]

The bool form means “on, with the global settings”. The object form brings its own press sensitivity, an optional separate release sensitivity, and its own strict flag.

enabled is the trap. By the protobuf rule an absent bool is false, which would mean most listed keys have Rapid Trigger off. My test profile says otherwise. I switched T, Y, I and O on and U off. The first four show up as objects with no enabled field, and U isn’t listed at all. So a listed key is on unless it says it isn’t.

let k = match e.get("value").unwrap_or(&Value::Bool(false)) {
    Value::Bool(on) => PerKeyRt { enabled: *on, ..rt_default },
    Value::Object(o) => {
        let press = o.get("sensitivity").and_then(mm).filter(|&s| s > 0.0).unwrap_or(rt_default.press);
        PerKeyRt {
            enabled: o.get("enabled").and_then(Value::as_bool).unwrap_or(true),
            press,
            release: o.get("secondarySensitivity").and_then(mm).filter(|&s| s > 0.0).unwrap_or(press),
            strict: o.get("strictActuationRange").and_then(Value::as_bool).unwrap_or(rt_default.strict),
        }
    }
    _ => return Err(bad("perKeyRapidTrigger value")),
};

Remap codes

Layer 0 is the base layer and layer 1 is the Fn layer. The values aren’t HID usages, but they’re close. For ordinary keys the code is the HID keyboard usage (page 0x07) minus 3, so A is 1 and Enter is 37. Modifiers get their own block at usage minus 125, from 99 (Left Ctrl) to 106 (Right Win). Menu is 119 and the Fn key is 231.

fn usage_of(code: u64) -> Option<u8> {
    match code {
        1..=96 => u8::try_from(code + 3).ok(),
        97 => Some(0x64),
        99..=106 => u8::try_from(code + 125).ok(),
        119 => Some(0x65),
        _ => None,
    }
}

The stock layers confirmed most of that, and the test profile filled in the rest: 1 remapped to Right arrow reads 76, 2 to Right Win reads 106, 3 to Menu reads 119. A few codes remain unmapped—mostly ISO/JIS-only positions plus media, brightness, and profile-switch codes on the Fn layer. Code 0 is unbound.

Snappy Tappy and the other advanced keys

akc has one entry per advanced key, with a keyIndex, a layer, and one field that names the type. Snappy Tappy, which is Wooting’s SOCD handling, is the socd field:

{ "keyIndex": { "rowNr": 3, "colNr": 1 }, "layer": 0,
  "socd": { "secondaryKey": { "rowNr": 3, "colNr": 3 }, "socd": 4, "inputBothWhenBottomedOut": false } }

That’s A paired with D. The inner socd number is the rule. To get the numbering, I set one pair to each rule in the test profile:

socd rule
1 neutral: neither key while both are down
2 absolute priority to the first key
3 absolute priority to the second key
4 last input wins

Rappy Snappy, where the deeper key wins, has its own rappySnappy field with the same pair layout. Dynamic keystrokes show up as a dks field with up to four actions and four points.

Onto the Razer side

The importer only targets Huntsman V3 keyboards. The V2 uses a different distance scale, so it’s refused. What you get is a new profile in the app, named after the source, like “test (60HE)”. It isn’t loaded and nothing gets written to the keyboard.

Wooting becomes loss
actPoint, customActuations per-key actuation rounded to 0.1 mm steps, 0.1–4.0 mm
Rapid Trigger sensitivity press and release per key 0.1 mm steps, clamped to 0.1–1.0 mm
not strict continuous Rapid Trigger per key in the app, one switch per profile in firmware
remap[0] key remaps unknown codes skipped and listed
socd, rappySnappy Snap Tap groups see below

You can see the rounding on the defaults: 614 is just under 0.15 mm, so it rounds down to 0.1. A per-key release sensitivity of 0.5 mm with a 0.2 mm press survives as set.

The V3 firmware keeps one continuous switch per profile, so the importer only turns it on when every key with Rapid Trigger wants it.

Snap Tap is where the least carries over. Last input, neutral and Rappy Snappy map to the app’s last, neutral and deeper rules. Absolute priority has no equivalent, so those pairs fall back to last input with a notice. So does any rule number I haven’t seen.

Stock V3 firmware also runs just one pair, the first group’s, and only when its rule is last input. The importer sorts a last-input pair to the front, then tells you which pair the keyboard will run and how many are left for the app’s driver mode. My test profile has five pairs; A ↔ D is the one that runs on stock firmware.

What does not translate

  • Dynamic keystrokes, and any advanced key type other than the two pair types. Dropped with a notice.
  • “Input both when bottomed out” on a Snappy Tappy pair. Reported, not mapped.
  • The Fn layer. The Razer keyboard keeps its own stock one.
  • Tachyon mode, gamepad settings, RGB and the lightbar. Ignored.
  • Keys the target doesn’t have. Import an 80HE profile to a Huntsman V3 Pro Mini and you lose the F-row, arrows and navigation block. Their settings are counted and reported.

Test coverage and open edges

The parser and converter are tested against five saved Wootility responses—including two custom test profiles (60HE and 80HE+) with every supported feature set to known values—targeting the Huntsman V3 Pro Mini’s device definition.

A few parts of the format are still unmapped:

  • Mod-tap and toggle keys (likely their own akc fields, not yet seen in samples).
  • Other Wooting boards, such as the 60HE+, Two HE, and UwU.
  • rappySnappy.socd (always 0 in my samples) and tachyonModeFocus.
  • Schema versions other than 15, which the importer parses best-effort and flags.