LED resistor calculator
To drive an LED safely you add a series resistor that drops the difference between the supply voltage and the LED’s forward voltage at your chosen current: R = (Vsupply − Vf) / I.
Enter the supply voltage, the LED forward voltage and the target current to get the exact resistor, the nearest standard E12 part, the real current that part produces, and the power the resistor dissipates — all in your browser.