A programmer calculator for FPGA, ASIC, RTL and DSP engineers: two's complement at any width from 1 to 512 bits, Q-format fixed point, IEEE 754 to FP8, and Verilog literals as typed, with exact arithmetic.
WIDTHS AND FORMATS
- Two's-complement integers at any width from 1 to 512 bits, with the signed and unsigned readings shown together.
- Q-format fixed point in every spelling (s16q15, sq0.15, q15), with the LSB, the range, and the quantization error of each result.
- IEEE 754 encode and decode: binary16, bfloat16, tf32, binary32, binary64, binary128, the 8-bit E4M3 and E5M2 formats, and any custom em shape. Type a value and see its bit pattern; type a pattern and see its value. fma() rounds once.
- Ten rounding modes and four overflow modes, each named the way your toolchain names it.
- Decimal, hexadecimal, binary, and octal at once, the four bases of a programmer calculator; switch with one key and the value does not change.
- A bit grid: tap a bit to toggle it, with the sign, exponent, mantissa, and fraction fields marked, up to 512 bits.
EXACT ARITHMETIC
No floating-point rounding hides in the arithmetic. Integer and fixed-point results are exact at any size. Results that have no exact form, such as square roots, logarithms, exponentials, and trigonometry, are computed to 50 significant digits and marked ≈, so an exact result is never confused with an approximate one. Any integer division shows all four results together: div, rem, fdiv, and mod.
HDL NOTATION
- Verilog operators and idioms as typed in code: & | ^ ~ << >> >>>, part-select x[15:8], concatenation {a, b}, replication {4{a}}, reductions, sized literals such as 24'shFF8000, and VHDL bit strings such as x"FF".
- sext, zext, narrow, and bits(x, T) to reinterpret a pattern in any format.
- Rotates, rotate through carry with a carry flag, popcount, clz, ctz, bitrev, bswap.
FUNCTIONS
- Codes: Gray, one-hot, alignment, LFSR taps for widths 2 to 32 (each verified maximal-length), and CRC with nine presets or your own polynomial and parameters.
- Clocks: period, frequency, ppm, and a PLL M/N/D solver with the error in ppm.
- Signals: dB, dBFS, ENOB, SNR.
- Sizing: clog2, flog2, uwidth, swidth.
- Trigonometry in degrees or radians, exact at every multiple of 90°, with asin, acos, atan, and atan2.
- floor, ceil, round, and trunc, each naming the rounding mode it used; factorial; pi.
ENTRY AND HISTORY
- Algebraic entry with full operator precedence, or RPN as on a classic programmer calculator.
- A history of every expression and result: tap a row to reuse it, refer to it as r1, r2, …, store values in named variables, and undo.
- Paste a column of numbers and each line becomes its own row.
- History and settings persist across restarts.
- Engineering or scientific number display.
REFERENCE
- Func, a reference page for every function with its syntax, arguments, and worked examples, and Help with search, both inside the app.
PRIVACY
Bitwright is a programmer calculator that asks for no permissions, not even network access. Nothing is collected, nothing is uploaded, and no calculation needs a connection. It works offline.
No ads, no in-app purchases, no subscriptions. One price, everything included.
VERIFY CRITICAL RESULTS
Bitwright is a calculation aid, provided as is and without warranty. Exact arithmetic is not a guarantee that a result is correct for a given purpose: the format, rounding, and expression are yours. Verify any result independently before using it in production hardware or safety-related work.
Full terms: https://mintwright.app/bitwright/terms
Programmer calculator: hex, binary, any bit width, fixed point, IEEE 754. Exact.
Ažurirano dana
22. nov 2026.