Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Identity
it
#codice-fiscale
#italy
#italian
#identity

Italian Codice Fiscale

Matches an Italian fiscal code (Codice Fiscale) — 16 alphanumeric characters encoding name, birth date, gender, and municipality.

Italian government formsHealthcare systemTax declarations
/
/
Safe
Test String
2 matches
[…]{6}Character class […]Matches any single character listed in this set — repeated exactly 6 times · {6} — exactly 6 times
A-ZA-ZA-Z — range from 'A' to 'Z'
\d{2}digit\d — digit (0–9) — repeated exactly 2 times · {2} — exactly 2 times
[…]Character class […]Matches any single character listed in this set
A-ZA-ZA-Z — range from 'A' to 'Z'
\d{2}digit\d — digit (0–9) — repeated exactly 2 times · {2} — exactly 2 times
[…]Character class […]Matches any single character listed in this set
A-ZA-ZA-Z — range from 'A' to 'Z'
\d{3}digit\d — digit (0–9) — repeated exactly 3 times · {3} — exactly 3 times
[…]Character class […]Matches any single character listed in this set
A-ZA-ZA-Z — range from 'A' to 'Z'
Pattern: 38 charsInput: 33 chars
100% client-side · private

Valid Examples

  • RSSMRA80A01H501U
  • BNCSFN85T10A944E

Invalid Examples

  • RSSMRA80A01H501
  • RSSMRA80A01H501UA
  • 123456789012345

Usage & Integration

Validate Italian Codice Fiscale natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('it-codice-fiscale', '...');

Python

from regexto_validators import validate

validate("it-codice-fiscale", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("it-codice-fiscale", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('it-codice-fiscale', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("it-codice-fiscale", "...").unwrap();