Identity
zh-CN
#china
#chinese
#resident-id
#identity
Chinese Resident ID
Matches a Chinese national resident identity card number — 17 digits followed by one digit or X (checksum digit).
✓ Chinese government integration✓ KYC for Chinese users✓ Travel booking
✓ Valid Examples
- 11010519491231002X
- 440301198001012158
✗ Invalid Examples
- 11010519491231002
- 1101051949123100200
- 1101051949123100Y
Usage & Integration
Validate Chinese Resident ID natively in your backend or frontend without copying regex strings.
Node / Edge
import { validate } from '@regexto/validators';
validate('cn-resident-id', '...');Python
from regexto_validators import validate
validate("cn-resident-id", "...")Go
import "github.com/regex-to/validators-go"
valid, err := validators.Validate("cn-resident-id", "...")PHP
use RegexTo\Validators\Validator;
Validator::validate('cn-resident-id', '...');Rust
use regexto_validators::validate;
let is_valid = validate("cn-resident-id", "...").unwrap();