Local processing

QA TEST DATA

Generate test RUC Peru

The RUC carries a check digit, so a number typed by hand fails your own form validation. Generate up to 1000 fictitious RUC numbers with mod 11 already computed and download them as a file.

Use this tool

LOCAL PROCESSING

Everything happens in your browser

The file and text never leave your device.

⚠️ Fictitious numbers: testing onlyThese numbers are generated at random and only satisfy the format and check-digit rules. They belong to no person or company, are not registered with any official body and prove no identity whatsoever. Being random, they may coincide by chance with a real document. Use them only to populate test environments and automate software tests. Using them to impersonate someone, obtain services or for any fraudulent purpose is illegal and is the sole responsibility of whoever does it.

Why you cannot invent a RUC by hand

A RUC is eleven digits where the last one is derived from the preceding ten through a weighted sum modulo 11. Type eleven random figures and your odds of landing the right check digit are roughly one in eleven, so most of your fixtures will bounce off your own validation and you will burn time debugging a defect that does not exist.

The prefixes that signal taxpayer type

The first two digits declare which kind of taxpayer the number belongs to: 10 for a sole trader, 15 and 17 for specific cases and 20 for a legal entity. Generation spreads across those valid prefixes, so the data you get resembles what you will actually meet in production rather than a uniform sequence.

Wiring them into your suite

Request between 1 and 1000 numbers and download them as plain text with one RUC per line. That shape drops straight into a database seeder, a fixtures file or an environment variable for your integration tests, with no cleanup step required.

FREQUENTLY ASKED QUESTIONS

Is the check digit correct?

Yes. It is computed with the official modulo 11 algorithm and the weights 5, 4, 3, 2, 7, 6, 5, 4, 3, 2, so the numbers pass any structural RUC validation.

Do they match real companies?

No. They are produced at random and come from no register. As with any generator of this kind a number may coincide with a registered one by chance, which is exactly why testing software is the only legitimate use.

Can I look them up at SUNAT?

They will not appear, because they are not enrolled. The tool reproduces the mathematical structure of a RUC; it queries no registry and has no access to taxpayer data.

Does any data leave my browser?

No. The whole calculation happens locally on your machine and nothing is transmitted to or stored on any server.