Print custom keycaps: MX-compatible, 1u to 6.25u
What does the keycap generator do?
A custom keycap is one of the nicest small projects for a 3D printer: a macro pad with your own symbols, a spare for a broken key, a bright Escape key or a blank test cap to check how well your printer handles the cross stem. This generator builds exactly that: a keycap for MX-compatible switches with a Cherry-style profile, a finger dish in the top and a legend of your choice. You set the width, the row, the text and a few fit values, and you download the result as STL or 3MF.
Everything runs in your browser. Nothing is uploaded, and the whole design lives in the link, so you can send a cap to a friend or save it as a bookmark. Browse the examples for ready-made letter keys, modifiers and a space bar, or open the keycap generator and start with the default “A”.
The cap is built parametrically, not loaded from a mesh. That is why you can change the dish, the wall and the stem clearance and see the effect right away. The sizes and the row table go back to an OpenSCAD project; more on that at the end of this page.
Key width and row profile
Key width
Keyboard keys are measured in units: 1u is the pitch of one key, 19.05 mm. “Key width” offers 1u, 1.25u, 1.5u, 1.75u, 2u, 2.25u, 2.75u and 6.25u. A normal letter key is 1u. Tab is usually 1.5u, Caps Lock 1.75u, Backspace 2u, Enter 2.25u, the right Shift key 2.75u and the space bar 6.25u. Examples: the Enter key, the Right Shift key and the space bar.
From 2u up, the option “Stabilizer stems” (on by default) adds two extra cross stems for plate-mounted stabilizers. Switch it off if your keyboard uses another stabilizer system or if you want a plain wide cap.
Row profile R1 to R4
A Cherry-profile keyboard is not flat: every row has its own height and tilt, so the board forms a gentle curve under your fingers. “Row profile” has four choices:
| Row | Where it goes |
|---|---|
| R1 | top row (numbers, F keys) |
| R2 | upper letter row |
| R3 | home row (ASDF) |
| R4 | bottom letter row and space bar |
Pick the row of the key you want to replace. A cap from the wrong row works, but it sits at a different angle than its neighbors. The low rows leave less room above the switch stem; if a deep legend or dish would cut the cross hole short, the generator warns you.
The legend
The “Legend” group controls the text on top of the cap. “Legend” takes up to 12 characters; leave it empty for a blank cap. “Font” offers the built-in fonts or your own font file, which stays in your browser. “Legend position” puts the text in the center or at the top left, which looks right for words such as Tab or Ctrl on wide keys. The capital letters are “Legend size” tall, 5 mm by default (range 2–12 mm). If the text does not fit on the top, the generator makes it smaller and tells you so.
The “Legend style” decides how the text is made:
- Engraved: the letters are cut into the top. One color, works on every printer. “Legend depth” (0.4–1 mm, default 0.6 mm) is the cut depth.
- Raised: the letters stand out by the same depth. You can feel them, which many gamers like; see the raised W key.
- Inlay: the letters are a second part that sits flush with the top. This needs two filaments and gives the cleanest look, as on the Escape key with inlaid legend or the macro key “M1”.
Keep the strokes printable. With a 0.4 mm nozzle, thin serifs and tiny letters turn into blobs; the generator warns you when the capital letters are very small. A bold sans-serif font at 4 mm or more works well. Keys like F and J carry a small bar for your fingers. Switch on “Homing bar” to get one near the front edge, as on the F key for the home row.
Dish, wall and stem fit
The group “Fit and walls” has the three values that matter most for how the cap feels and fits.
“Dish depth” is the depth of the curved trough in the top. The default is 0.55 mm (range 0–1.2 mm); 0 gives a flat top. A deeper dish feels more like a molded cap, but it leaves less material above the cavity.
“Wall thickness” is the thickness of the skirt at the bottom edge, 2 mm by default (range 1.2–3 mm). Thicker walls make a stiffer and heavier cap; 1.2 to 1.5 mm saves filament and is still stable on a small key, see the thin-wall R1 cap.
“Stem fit” is extra clearance per side of the cross hole, from −0.1 to 0.25 mm, 0.05 mm by default. Every printer and every filament shrinks a little differently, so this is the value to tune. If the cap does not go onto the switch, increase it. If it slips off, decrease it. Print the blank test cap first with the material you will use, try it on a switch, and only then print a full set.
Printing the keycap
The cap is oriented the way you print it: upright, top face up, standing on its open bottom edge. Inside, the cavity ceiling is stepped at 60°, and the cross stem flares at its foot, so nothing needs supports. That matters because supports inside a tiny cavity are almost impossible to clean.
- Layer height: 0.12–0.16 mm gives a smoother dome. 0.2 mm works but shows more steps on the dish.
- Nozzle and walls: a 0.4 mm nozzle with at least two perimeters.
- Material: PLA is easiest. PETG or ABS are tougher for keys you hit a lot.
- Test the stem first: the cross hole is the only tight tolerance. Print a blank cap and adjust “Stem fit” before the full set.
- Speed: print slowly on the top layers for a clean surface.
Here are numbers from a real slice (PrusaSlicer, Prusa MINI, 0.20 mm SPEED, Prusament PLA). A 1u cap takes about 1.7 g and 11 to 12 minutes. An Enter key at 2.25u needs 3.9 g and 17 minutes, the Shift key at 2.75u 5.2 g and 21 minutes. The 6.25u space bar is the biggest at 10.8 g and about 31 minutes. In all of these, the slicer added no automatic supports. Printing a whole set in one go is practical: arrange several caps on one bed and let them run overnight.
Colors and multi-material
Two color slots exist: “Keycap” and “Legend”. With the engraved and raised styles, the legend is part of the cap and the legend color is not used, which the editor tells you. With Inlay, the legend is a separate part that touches the cap but never overlaps it. In the download panel pick:
- “Multi-color 3MF (PrusaSlicer)” for PrusaSlicer with MMU3, XL or Core One. The parts are already assigned to their extruders.
- “3MF (Bambu Studio / OrcaSlicer)” for the AMS. Load a filament for each color before you open the file.
- “STL per color (ZIP)” as a fallback for any slicer. You assign the parts to filaments by hand.
A single-extruder printer can print an inlay only by pausing for a filament change at the right layer, but that recolors the whole layer, not just the letters. For a single extruder, use the engraved or raised style instead. Multi-color caps need a prime tower on most printers; the examples stay below 165 mm in width so they fit the Bambu bed with a tower.
Ideas for use
Start with a macro pad: nine caps with numbers or icons-as-text in inlay style look professional. For a gaming keyboard, replace WASD with raised letters in orange. For a home-row refresh, print F and J with a homing bar. A blank space bar in dark gray looks good on almost any board. You can also print one cap per color and mix them across a keyboard. For a different small desk project, try the cable tag generator for labeling the cables behind the keyboard.
The caps are made for plates with MX-style cross stems. They do not replace caps for low-profile or optical switches with other stems, and the sizes assume the usual 19.05 mm key pitch.
Origin and credits
The key sizes from 1u to 6.25u and the four Cherry rows R1 to R4 come from openscad_cherry_keycaps by Petr Sedlacek (MIT license). That project loads ready-made STL files; this generator builds the cap parametrically instead. The profile dimensions, namely the edge heights per row, the top insets and the dish depth, were measured from the reference drawings of cherry-mx-keycaps by Constantino Schillebeeckx (MIT license). “MX-compatible” and “Cherry profile” describe only the fit and the shape; this generator is not affiliated with any switch maker. The full license texts are on the licenses page.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Key | |||
| Dish depth | 0.55 mm | 0 – 1.2 mm | Depth of the curved finger trough in the top, 0 = flat top. |
| Legend | |||
| Legend size | 5 mm | 2 – 12 mm | Height of the capital letters; a legend that does not fit is made smaller. |
| Legend depth | 0.6 mm | 0.4 – 1 mm | How deep the legend is engraved or inlaid, or how far it stands out. |
| Fit and walls | |||
| Wall thickness | 2 mm | 1.2 – 3 mm | Thickness of the skirt at the bottom edge; thicker walls make a stiffer, heavier cap. |
| Stem fit | 0.05 mm | -0.1 – 0.25 mm | Extra clearance per side of the cross hole: larger if the cap does not go on, smaller if it falls off. |
Frequently asked questions
Which switches does the keycap fit?
It has a cross stem for MX-compatible switches (Cherry MX and clones). If the cap is too tight or too loose, change the “Stem fit” value by a few hundredths of a millimeter and print a blank test cap.
Do I need supports?
No. The cap stands upright on its open bottom edge, and the cavity ceiling and the stem are shaped so that no overhang is steeper than 45°. The slicer needed no automatic supports for any of the examples.
How do I get a two-color legend?
Choose “Inlay” as the legend style and set a legend color. The legend becomes a second part that sits flush in the top. Download the multi-color 3MF for PrusaSlicer or the 3MF for Bambu Studio and OrcaSlicer.
Is a printed keycap as durable as a molded one?
It is rougher and the top shows layer lines, but it is perfectly usable for macro pads, spare keys and prototypes. Print in PETG or ABS if the cap gets heavy use; PLA is fine for the desk.
Can I make wide keys like Enter or the space bar?
Yes. Widths of 1u, 1.25u, 1.5u, 1.75u, 2u, 2.25u, 2.75u and 6.25u are available. From 2u up, the generator adds the extra stem pair for plate-mounted stabilizers.
Origin & license
- openscad_cherry_keycaps by Petr Sedlacek · MIT · code ported – Key widths 1u to 6.25u and the Cherry rows R1 to R4 as choices; the cap itself is generated parametrically here instead of loaded from STL files.
- cherry-mx-keycaps by Constantino Schillebeeckx · MIT · dimensions and shape adopted – Cherry profile dimensions: front and back edge heights per row, top insets and dish depth from the reference drawings and models.