Documents and Office

How to Validate an Ecuadorian Cédula or RUC Number

Check an Ecuadorian cédula with its module 10 digit and province code, tell RUC types apart, and clean whole lists of numbers in your browser.

Saizul Amin
Saizul Amin3 Nov 2026 · 4 min read
How to Validate an Ecuadorian Cédula or RUC Number

How to Validate an Ecuadorian Cédula or RUC Number

A single wrong digit in a cédula or RUC can get an electronic invoice or a payment file rejected. The Ecuador RUC and Cédula Validator catches those errors and explains the check step by step.

The two numbers

Every Ecuadorian has a cédula de identidad, a ten-digit number issued by the Registro Civil. Every taxpayer has a RUC, the thirteen-digit registry number of the SRI. In a cédula, the first two digits are the province of issue, from 01 to 24, or 30 for Ecuadorians registered abroad. The third digit is lower than 6, and the tenth is a check digit calculated with a module 10 algorithm.

The cédula algorithm

StepWhat to do
1Take the first nine digits
2Multiply them by 2, 1, 2, 1, 2, 1, 2, 1, 2
3Subtract 9 from any product above 9
4Add the results
5The digit is 10 minus the last digit of the sum, or 0

A worked example

Take the nine digits 171003406. The products are 2, 7, 2, 0, 0, 3, 8, 0 and 12, and 12 becomes 3. The sum is 25, and 10 − 5 = 5, so the full cédula is 1710034065. Its RUC as a natural person would be 1710034065001. Type only the nine digits and the validator calculates the missing tenth one for you. The public entity RUC 1760013210001 also passes its module 11 check.

RUC types

A natural person's RUC is the cédula followed by an establishment number, usually 001. Companies and public entities use a module 11 check digit instead.

Third digitTypeCheck
0 to 5Natural personCédula + establishment
6Public entityModule 11, ninth digit
9Private companyModule 11, tenth digit

Valid is not registered

A correct digit only shows that the number is well formed. To confirm that a RUC is registered and active, use the SRI's online RUC lookup.

Cleaning lists

Businesses that keep customer and supplier lists, banks, schools and payroll departments can paste a whole column into batch mode. The tool labels each line as a cédula or RUC of a person, company or public entity, flags duplicates and builds a clean list that keeps each valid number once. Fixing wrong digits before importing data avoids rejected documents and duplicated records.

Using the validator

  1. Type a cédula or RUC.
  2. Read the status and the calculation steps.
  3. Type nine digits to calculate a missing check digit.
  4. Paste a list in batch mode.
  5. Copy the clean list or download it as CSV.

The tool checks the format and digits only. It is not legal advice.

Work in small, saved steps

Every tool in this series keeps your work as a project in your own browser. Make a change, check the preview, and use undo (Ctrl+Z) or redo (Ctrl+Y) freely; nothing is lost while you experiment. Before a big change, save a named copy from the Projects menu, so you can return to it later or compare two versions side by side. Export the project file when you want to move it to another computer or keep a backup, and import it again whenever you need it.

Privacy by design

The processing happens in the page itself. Files you open are read by code running on your device, results are calculated locally, and nothing is sent to a server or stored in a cloud account. That makes the tool suitable for customer lists, financial data and other material you would not upload to an unknown website. If a component such as a file reader or a map outline is downloaded from a public CDN, only that open-source code or public data is fetched, never your own content.

Share the result clearly

When you pass the output to colleagues, say where the data came from, when it was exported, and which settings you used, so that someone else can repeat the work and get the same answer. Keep the original file unchanged and store the cleaned or calculated version separately. A short note with the assumptions, filters and date saves a lot of questions later and makes the result easier to trust.

Privacy

The tool runs entirely in your browser. Your details stay on your device and are never uploaded.

Save your work

Projects are saved automatically in this browser. Export them as a file to keep a copy, or print a report.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages