RUT Validator & Formatter

JSON →
library 1.0.1 ·javascript
verified Jun 4, 2026

A lightweight (zero-dependency) library for validating, formatting, and cleaning Chilean RUT (Rol Único Tributario). Current stable version: 1.0.1. It provides three primary functions: validateRut (returns boolean), formatRut (adds dots and dash, uppercase K), and cleanRut (removes separators). Ships TypeScript types. Unlike alternatives, it has a simple API with no dependencies and is focused only on Chilean RUT operations.