StealThis .dev

DIY — Maker Unit Converter

A three-tab bench-side unit converter in the workshop blueprint style: a live two-way mm to inches converter that understands fractional inches like 3/8 and snaps to the nearest 1/64 with a drift note, an AWG wire gauge slider with diameter, cross-section and a scaling cross-section preview, and an interactive 4-band resistor SVG whose bands cycle on click or keyboard and decode to ohms with tolerance range, plus reverse lookup from an ohms input and copy-to-clipboard toasts.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Maker Unit Converter

Three workshop calculators behind one blueprint-styled tab bar. The Length tab converts millimeters and inches in both directions as you type — the inches field accepts decimals, plain fractions (3/8) and mixed numbers (1 1/2), while a navy readout shows the nearest 1/64″ fraction plus how many millimeters of drift that rounding introduces. Quick chips load common shop sizes like 1/4″, 3 mm and 18 mm plywood.

The Wire Gauge tab maps AWG 0–30 to diameter and cross-section using the standard geometric formula, with an illustrative chassis amp rating and typical bench uses per range. A blueprint-framed cross-section preview scales the copper disc live as you drag the slider, so 30 AWG magnet wire visibly shrinks next to 10 AWG mains cable.

The Resistor Code tab renders a 4-band resistor as inline SVG: click or keyboard-cycle each band, or pick from the swatch radiogroups, and the decoded value (4.7 kΩ ±5%) plus its tolerance range update instantly in mono type. A reverse-lookup field parses values like 4.7k or 1M and snaps the bands to the nearest two-digit code. Every tool has a copy-result button with a toast confirmation, and the tabs use proper roving-tabindex arrow-key navigation.

Illustrative UI only — always follow real safety guidance when working with tools, electronics, or repairs.