Stop reinventing the wheel.
just use...
numora.
The Standard for
DeFi Numeric Inputs
Native inputs destroy precision. Regex is fragile.
numora solves the nightmares of building all financial inputs validation, formatting and sanitization.
0 dependencies
7.1kb gzipped
framework agnostic
Built for the
Swap Interface
Handling numeric state in DeFi is deceptively hard. You need tosanitize "bad" keystrokes, handle scientific notation, calculate the caret position and more...
Try pasting these values:
Real-time Formatting
Auto-formats with commas as you type.
Compact/Scientific notation
Try to type 1k, 1m, 1b...
Or paste 1e-5, 1e+5.
Or paste 1e-5, 1e+5.
Precision Control
Prevents >18 decimals automatically.
Sanitization
Pastes are sanitized instantly.
Loading prices...
Input fields powered by numora
We analyzed the industry leaders.
We didn't guess how to handle money, we analyzed the DeFi leaders. Numora's core logic is a unification of the audited, hardened implementations used in the most trusted protocols in DeFi. We extracted the logic, removed the framework dependencies, and standardized the API.