Skip to content

Main content

Uuid Version Nibble Consistency Tool

Calculate uuid version nibble consistency from explicit caller-supplied inputs.

Loading tool…

Description

Check hyphenated UUID shape and compare its version nibble with an expected value.

Identifier validation can involve several distinct questions: whether text has the expected shape, whether a checksum is consistent, and whether an authority actually assigned the identifier. Formatting and field extraction address narrower questions. Each result must be read according to the particular property the tool checks.

Check hyphenated UUID shape and compare its version nibble with an expected value.

When to use this tool

Use Uuid Version Nibble Consistency when you need the particular shape, formatting, field, or checksum property as one explicit stage in an identifier workflow.

How to use the tool and how it works

  1. Enter uuid, expected. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read valid, version, matches. Inspect valid, matches before interpreting the associated values.

Require expected from zero through 15. Check canonical hyphenated UUID hexadecimal shape, extract the version nibble at zero-based position 14 when shaped correctly, and return matches when it equals expected.1

Input fieldMeaning and unitsAccepted input
uuidUuidRequired. Text; maximum UTF-16 length 8192.
expectedExpectedRequired. Safe integer; minimum 0; maximum 15.
Output fieldInterpretationReturned shape
validWhether this tool’s particular check passes; does not imply broader identifier or protocol validity.Required. Boolean.
versionParsed version nibble or zero placeholder when valid is false.Required. Safe integer.
matchesWhether the supplied values match under the particular stated rule.Required. Boolean.
json
{
  "input": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "expected": 4
  },
  "output": {
    "valid": true,
    "version": 4,
    "matches": true
  }
}

Limitations and assumptions

  • Malformed UUID spelling returns valid false and version zero, so zero is not evidence of a parsed version. Variant bits, reserved values, UUID generation, and identifier assignment are not validated.
  • The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.

Alternative or Complementary methods

Use a complete format and checksum validator when required, then consult the issuing registry or verification process for assignment and identity. Preserve meaningful leading zeros as text.

References

  1. Calculation and input contract: validate/uuid-version-nibble-consistency — tool.io

Similar or alternative tools