Skip to content

Main content

Decoding: Percent Encoded Octet Triplet Tool

Decode exactly one percent-encoded octet without interpreting it as UTF-8 text or a URL.

Loading tool…

Description

Decode one percent triplet to an octet.

Escaping and token decoding depend on the surrounding format. Form-data plus signs, MIME Q underscores, quoted-printable octets and quoted CSV fragments have different meanings even when their text looks similar.

Decode one percent triplet to an octet.

When to use this tool

Use Decoding: Percent Encoded Octet Triplet when decoding one explicitly supported format fragment.

How to use the tool and how it works

  1. Enter triplet. 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 result. Expand result to inspect the returned fields.

Decode one percent triplet to an octet. Require percent followed by exactly two case-insensitive hexadecimal digits; return the parsed byte value.1

Input fieldMeaning and unitsAccepted input
tripletTripletRequired. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units.
Output fieldInterpretationReturned shape
resultReturned object; expand its named members below.Required. Object.
result.octetOne numeric octet, from 0 through 255.Calculated result member: number.
json
{
  "input": {
    "triplet": "%FF"
  },
  "output": {
    "result": {
      "octet": 255
    }
  }
}

Limitations and assumptions

  • No UTF-8 conversion, URL component interpretation or whole-string decoding is performed.
  • Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use the full format-specific parser for framing, context, charset conversion and complete data validation.

References

  1. Calculation and input contract: decode/percent-encoded-octet-triplet — tool.io

Similar or alternative tools