Skip to content

Main content

URI Percent Triplet Ascii Check Tool

Calculate uri percent triplet ascii check from explicit caller-supplied inputs.

Loading tool…

Description

Check token for exactly one percent sign and two hexadecimal digits.

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 token for exactly one percent sign and two hexadecimal digits.

When to use this tool

Use URI Percent Triplet Ascii Check 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 token. 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, octet, ascii. Inspect valid, ascii before interpreting the associated values.

Check token for exactly one percent sign and two hexadecimal digits. Return its octet when valid and zero otherwise; ascii requires a valid triplet with octet no greater than 127.1

Input fieldMeaning and unitsAccepted input
tokenTokenRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
validWhether this tool’s particular check passes; does not imply broader identifier or protocol validity.Required. Boolean.
octetDecoded byte or zero placeholder for malformed token.Required. Safe integer.
asciiAsciiRequired. Boolean.
json
{
  "input": {
    "token": "%41"
  },
  "output": {
    "valid": true,
    "octet": 65,
    "ascii": true
  }
}

Limitations and assumptions

  • The zero octet is a placeholder when valid is false. This checks one escape token, not UTF-8 decoding, a complete URI, or whether the byte is allowed in a particular component.
  • 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/uri-percent-triplet-ascii-check — tool.io

Similar or alternative tools