Check Data quality $1.00 / 1,000 calls

String length is between

What this tool does

This tool checks if the length of a text string falls within a specified range. It helps you verify that entered text meets minimum and maximum character requirements. This is useful for ensuring data fits into specific fields or systems.

When to use it

  • Validating that a username has at least 3 and at most 5 characters.
  • Checking that a short message or comment is not too brief or too long.
  • Ensuring a code or reference number has an acceptable number of digits.
  • Filtering out entries where the text is empty or excessively long.

What to expect

You will receive a simple yes or no answer. It will tell you if the text length is between your specified minimum and maximum values.

Limitations

  • The tool only counts characters and does not understand word meaning or formatting.
  • Spaces and special symbols count as characters towards the total length.
  • Empty text is considered to have zero length and may fail the check if the minimum is higher than zero.

When it fails

  • If the text is longer than the maximum length you provided.
  • If the text is shorter than the minimum length you provided.
  • If the input text is missing or blank and the minimum length is greater than zero.

Good to know

  • Ensure both length values are whole numbers without text.
  • The first number should be smaller than or equal to the second number.

Input data

Parameter Required Example Description
text Yes test Enter the text you want to check. For example: 'test'.
length1 Yes 3 Enter the smallest number of characters allowed. For example: 3.
length2 Yes 5 Enter the largest number of characters allowed. For example: 5.

Output data

Field Description
result A yes/no indicator showing if the text length is within the specified range. For example: true.