It runs in your browser; nothing you enter is sent or stored. It checks length and characters only, to the formats GSA, DLA and NATO's NSPA publish. It does not look up a code or tell you whether it is active.
Federal Service Desk KB0037033; DLA CAGE About and FAQs; NSPA NCAGE FAQ; SAM Functional Data Dictionary (June 23, 2023); FAR 52.204-7.
The published formats
Unique Entity ID. GSA's help desk defines it in one sentence: “A Unique Entity ID (UEI) is a 12-character (alpha-numeric) code used in SAM and other federal government systems as a way to identify a unique entity.” (KB0037033). DLA's CAGE site agrees: “The UEI is a unique twelve-character alpha-numeric identification code provided by SAM.” GSA's data dictionary lists the field as alphanumeric, length 12, “The unique, twelve-character entity identifier in SAM.” And GSA's UEI FAQ: “The Unique Entity ID (SAM) is a 12-character alphanumeric value managed, granted, and owned by the government.”
CAGE and NCAGE codes. DLA: “A CAGE code is a five-character alpha-numeric identifier assigned to entities located IN the United States and its territories.” And: “An NCAGE is a five-character alpha-numeric identifier assigned to entities located OUTSIDE of the U.S. and its territories.” NATO's agency, NSPA, explains that the two are one format: “They are the same; however, the US drops the N to call it a CAGE code”. GSA's data dictionary lists both fields as alphanumeric, length 5, and says “CAGE Codes for foreign entities used internationally as part of the NATO Codification System (NCS) are called NCAGE Codes.”
| Code | Published format | Who assigns it | Source |
|---|---|---|---|
| Unique Entity ID | 12 characters, alphanumeric | SAM.gov | KB0037033; DLA; GSA data dictionary; GSA UEI FAQ |
| CAGE code | Five characters, alphanumeric | DLA CAGE Program Office (entities in the U.S. and its territories) | DLA; GSA data dictionary |
| NCAGE code | Five characters, alphanumeric; each NCS nation has its own structure; NSPA's own codes S***# and I***# | NSPA or the nation's codification bureau (entities outside the U.S.) | DLA; NSPA NCAGE FAQ; GSA data dictionary |
| EFT indicator | Four characters, alphanumeric, after the 12-character UEI | The entity, for an extra payment record | FAR 52.204-7(a); DLA; GSA data dictionary |
Our pages on the UEI number, the CAGE code and the NCAGE code explain what each one is for and how an entity gets one.
What the checker tests
Two things, and only two: the length, and whether every character is a letter or a digit. It trims spaces at the ends of each entry and reads lowercase letters as capitals. Twelve letters and digits match the UEI format; five match the CAGE and NCAGE format. Everything else gets a plain reason: a character that is not a letter or digit (a space, a hyphen, a period), one character short or long, or a length that fits neither code.
Short or long codes are the error GSA itself warns about. Its article on the entity administrator letter lists “Missing characters in the Unique Entity ID. Include all twelve characters of your Unique Entity ID.” (KB0016652). A code copied from a PDF or a spreadsheet often picks up a space or a hyphen; the checker shows what the entry would read without them, so you can compare it with the source.
The checker cannot tell a CAGE code from an NCAGE code. They share one format, and “Every NATO Codification System (NCS) member nation has own unique NCAGE code structure assigned.” The only structure NSPA publishes is for the codes it assigns itself: “NSPA assigns NCAGE codes for entities from non-NCS nations with structure S***# and I***# for supranational organizations.” When a five-character entry starts with S or I, the checker says so as information; it never fails a code on that basis.
What it does not test, and why
Only what is published. GSA's UEI FAQ took the question “Are there certain characters that will not be used in the Unique Entity ID? Like zero (0) or the letter O?” and answered by pointing to a separate technical specifications page. As of Nov. 24, 2026 that page no longer loads at GSA's address, and the checker applies none of its rules. GSA's own published example keeps us careful here: its Entity Management API page says the UEI parameter “Allows a single 12-character value or up to 100 values.” and gives “Example: ueiSAM=RV56IG5JM6G9”, a UEI with the letter I in it.
No check digit is computed, no letter is banned, and no position is required to be a digit, because none of that appears in the GSA, DLA or NSPA texts read for this tool. DLA publishes no character structure for U.S. CAGE codes in its FAQ; it says only that “The DLA CAGE Program Office is the only authorized source for U.S. CAGE codes.”
A UEI with an EFT indicator
A 16-character entry may be a UEI with its payment suffix. FAR 52.204-7 defines it: “Electronic Funds Transfer (EFT) indicator means a four-character suffix to the unique entity identifier.” (FAR 52.204-7(a)). DLA puts it the same way: “The EFT is an alpha-numeric four-character set that follows a twelve-character alpha-numeric UEI code.” The suffix marks an additional payment record for the same entity, and GSA's data dictionary notes “CAGE Codes are assigned at the Entity EFT Indicator level.” The checker splits a 16-character entry into the 12-character UEI and the four-character suffix. Use the 12-character UEI where a form asks for the UEI, and the suffix only where a form asks for the EFT indicator.
Worked examples
The first five rows use GSA's published API examples (“Example: ueiSAM=RV56IG5JM6G9” and the CAGE example “cageCode=00000”) and variants of them. The browser code and a Python copy of the same logic give these results.
| Entered | Result | Notes |
|---|---|---|
RV56IG5JM6G9 | Matches the UEI format | None |
rv56ig5jm6g9 | Matches the UEI format | Lowercase, read as capitals |
00000 | Matches the CAGE and NCAGE format | None |
RV56-IG5J-M6G9 | Characters outside the format | Reads RV56IG5JM6G9 without the hyphens |
RV56IG5JM6G | One character off a UEI | None |
RV56IG5JM6G90000 | 16 characters: a UEI plus an EFT indicator? | UEI RV56IG5JM6G9 plus suffix 0000 |
123456789 | Neither format | All digits |
RV56IG5JM6G9! | Characters outside the format | None |
SAM | Neither format | None |
A valid format is not a valid code
A string that matches the format may never have been assigned, may belong to another entity, or may be expired or inactive. The status of each code is separate from its format:
- The UEI outlasts the registration: “The Unique Entity ID does not expire.” (KB0051214). A registration behind it can still be inactive, and only SAM.gov shows which.
- DLA says “every U.S. assigned CAGE code will expire 5 years from the initial registration date, or the date last updated by the registrant - whichever is later” (DLA CAGE FAQ). For NCAGE codes, “Expirations DO NOT currently apply to NCAGE codes.”
- NSPA adds that “Entity can have only one active NCAGE code assigned.”
So a correct-looking code on an invoice, a subcontract or a grant application proves nothing on its own. Before you rely on it, look it up.
Checking that a code is real
For a UEI, use SAM.gov's entity search. It is not open to the public: “You must sign in to your SAM.gov account to search entities.” (KB0016414). Sign in with a SAM.gov account and use SAM.gov's entity search; our UEI lookup page walks through it. For a CAGE or NCAGE code, use DLA's CAGE Search & Inquiry; our CAGE code lookup page covers the search. To see whether the entity is excluded, the SAM.gov exclusions search needs no sign-in. For a full vendor check, see checking a vendor in SAM.gov.
If you were given a nine-digit DUNS Number, it is no longer the identifier: “The Unique Entity ID has replaced the DUNS Number.” (KB0045975). Ask the entity for its UEI.
Questions registrants ask
How many characters is a UEI?
Twelve, letters and digits. “A Unique Entity ID (UEI) is a 12-character (alpha-numeric) code used in SAM and other federal government systems as a way to identify a unique entity.” (KB0037033)
How many characters is a CAGE code?
Five, letters and digits, and an NCAGE code has the same format. “A CAGE code is a five-character alpha-numeric identifier assigned to entities located IN the United States and its territories.” (DLA)
Does the UEI ever contain the letter O or I?
GSA's FAQ points this question to a technical specifications page that is no longer online, so the checker does not apply a letter rule. GSA's own API example UEI, RV56IG5JM6G9, contains an I.
Our UEI shows 16 characters on a payment record. Is it wrong?
Probably not. FAR 52.204-7 defines the EFT indicator as “a four-character suffix to the unique entity identifier”. The first 12 characters are the UEI.
If the format checks out, is the vendor registered?
No. The checker tests length and characters only. Look the UEI up in SAM.gov (sign-in needed) and the CAGE code in DLA's CAGE Search & Inquiry, and check exclusions separately.
Sources
- Federal Service Desk: KB0037033 (what is a UEI), KB0016414 (viewing a UEI or record), KB0016652, KB0051214 and KB0045975
- GSA, Unique Entity ID (SAM) Frequently Asked Questions; GSA, Entity Management API (open.gsa.gov); GSA, SAM Functional Data Dictionary (June 23, 2023)
- DLA, CAGE About and FAQs; NATO (NSPA), NCAGE FAQ
- FAR 52.204-7 (acquisition.gov, FAC 2026-01)