Skip to content

Main content

Measurement Square Bracket Unit Token Tool

Join an explicit value token and a single-line unit in square brackets.

Loading tool…

Description

Append it inside square brackets after value.

A unit label is text describing a quantity's intended scale. Joining tokens, adding powers or choosing spacing changes presentation; it does not convert the quantity, validate dimensional compatibility or verify a unit registry entry.

Append it inside square brackets after value.

When to use this tool

Use Measurement Square Bracket Unit Token when you need a specific quantity-and-unit text convention.

How to use the tool and how it works

  1. Enter value, unit. 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 text. Use the output convention below.

Require nonempty unit text without square brackets or CR/LF. Append it inside square brackets after value.1

Input fieldMeaning and unitsAccepted input
valueValue under the stated unit, type, and placeholder convention.Required. Text; maximum UTF-16 length 8192.
unitUnitRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
textLiteral formatted output under the stated grammar and display convention.Required. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "value": "12",
    "unit": "m/s"
  },
  "output": {
    "text": "12 [m/s]"
  }
}

Limitations and assumptions

  • This is supplied literal labeling, without numeric parsing, unit-registry validation, or value conversion.
  • 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 a unit-aware calculation for actual conversion and dimensional checks. Select a destination-appropriate typography and retain the intended unit meaning when preparing labels.

References

  1. Calculation and input contract: format/measurement-square-bracket-unit-token — tool.io

Similar or alternative tools