CNPJ Generator & Validator
Generate and validate numeric and alphanumeric CNPJs (new 2026 format). Official algorithm with check digits.
93.021.106/0001-52How are the check digits calculated?
1. Character conversion
Each character is converted to a numeric value using the formula: ASCII code − 48. This results in: 0→0, 1→1, ..., 9→9, A→17, B→18, ..., Z→42.
| Char | ASCII | DV Value |
|---|---|---|
| 0 | 48 | 0 |
| 1 | 49 | 1 |
| 2 | 50 | 2 |
| 3 | 51 | 3 |
| 4 | 52 | 4 |
| 5 | 53 | 5 |
| 6 | 54 | 6 |
| 7 | 55 | 7 |
| 8 | 56 | 8 |
| 9 | 57 | 9 |
| A | 65 | 17 |
| B | 66 | 18 |
| C | 67 | 19 |
| D | 68 | 20 |
| E | 69 | 21 |
| F | 70 | 22 |
| G | 71 | 23 |
| H | 72 | 24 |
| I | 73 | 25 |
| J | 74 | 26 |
| K | 75 | 27 |
| L | 76 | 28 |
| M | 77 | 29 |
| N | 78 | 30 |
| O | 79 | 31 |
| P | 80 | 32 |
| Q | 81 | 33 |
| R | 82 | 34 |
| S | 83 | 35 |
| T | 84 | 36 |
| U | 85 | 37 |
| V | 86 | 38 |
| W | 87 | 39 |
| X | 88 | 40 |
| Y | 89 | 41 |
| Z | 90 | 42 |
2. Weight multipliers
Values are multiplied by specific weights from right to left:
3. Modulo 11 calculation
- Multiply each value by its corresponding weight
- Sum all products
- Calculate remainder: sum % 11
- If remainder < 2 → DV = 0. Otherwise → DV = 11 − remainder
4. Example with alphanumeric CNPJ
459 % 11 = 8 → DV1 = 11 − 8 = 3
What is it?
CNPJ Generator & Validator is a free online tool that runs entirely in your browser. Generate and validate numeric and alphanumeric CNPJs (new 2026 format). Official algorithm with check digits. No data is sent to any server — all processing happens locally on your device, ensuring complete privacy and security. Whether you're a developer, designer, student, or professional, this tool saves you time by providing instant results without requiring any software installation or account creation.
How to use
Using CNPJ Generator & Validator is straightforward. Simply enter or paste your data in the input field, configure any available options, and click the action button to process. The result appears instantly in the output area. You can copy the result to your clipboard with one click. If you need to start over, just clear the input and try again. The tool accepts a wide range of inputs and handles edge cases gracefully.
When to use
CNPJ Generator & Validator is useful in many everyday scenarios. Developers use it during coding sessions to quickly process data without leaving the browser. It's also perfect for one-off tasks where installing a dedicated application would be overkill. Students and learners find it helpful for understanding how the underlying process works. Since it's web-based, you can use it from any device — desktop, laptop, tablet, or phone — without any setup.