01What is Boundary Value Generator?
Boundary value analysis says bugs cluster at the edges of a valid range, so this generator lists the inputs around those edges for you. Choose Integer, Float, String (length), Date or Array (length), enter the inclusive minimum and maximum, and hit Generate. Integers get min-2, min-1, min, min+1, the midpoint, max-1, max, max+1 and max+2, plus zero, -1, Number.MAX_SAFE_INTEGER and a non-integer 1.5. Floats accept decimal bounds and use a 0.001 step around each edge, shown to three decimal places, and add NaN, Infinity and -Infinity. String and array modes work on lengths: empty, one below the minimum, the minimum, one above, a middle length, one below the maximum, the maximum and one over, with null and either a whitespace-only string or an array of null/undefined/NaN as special cases. Date mode switches the fields to date pickers and works in whole UTC days, so your time zone can't shift a boundary by a day. It also adds a real 29 February from the first leap year at or after the start, a 29 February in the following non-leap year, and a malformed value. Every row's VALID or INVALID badge is computed from your range rather than fixed, so with a range of 5 to 5 only 5 is valid, and repeated values are listed once. Bad input, such as a minimum above the maximum, decimals for an integer range or a negative length, shows an error instead of a misleading list. The two special-case rows marked invalid, whitespace-only strings and arrays with invalid elements, assume your validator trims or checks elements. Copy exports a [PASS]/[FAIL] list. We kept the output plain on purpose. Nothing is randomised, so the same range always gives the same list, which makes it easy to paste into a test file and diff later. The generator only knows the range you type in. It can't see your validator, so business rules such as "must be even" or "no weekends" are yours to add as extra cases. Treat the list as a starting set for your test table, then add the cases only you know about.
QA engineers, SDETs and developers writing unit or form validation tests who want edge cases listed rather than guessed. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Boundary Value Generator
- Choose an Input Type from the dropdown.
- Enter Min Value and Max Value (or Min Length and Max Length for strings and arrays).
- Click Generate to list the cases with VALID or INVALID badges and their category.
- Use the copy button to grab them as [PASS]/[FAIL] lines, or reset to start over.
03Worked examples
- Input:
Integer, min 1, max 100 - Result:
-1 ✗, 0 ✗, 1 ✓, 2 ✓, 50 ✓, 99 ✓, 100 ✓, 101 ✗, 102 ✗, 9007199254740991 ✗, 1.5 ✗ - The Zero value and Negative value rows (0, -1) are dropped because they duplicate values already listed.
- Input:
Integer, min 5, max 5 - Result:
3 ✗, 4 ✗, 5 ✓, 6 ✗, 7 ✗, 0 ✗, -1 ✗, 9007199254740991 ✗, 1.5 ✗ - When min equals max, only one value passes and duplicate rows are removed.
- Input:
String length 5-20 - Result:
"" (0) ✗, length 4 ✗, 5 ✓, 6 ✓, 12 ✓, 19 ✓, 20 ✓, 21 ✗, null ✗, " " (whitespace only) ✗ - Input:
Float, min 0, max 1 - Result:
-1.000 ✗, -0.001 ✗, 0.000 ✓, 0.001 ✓, 0.500 ✓, 0.999 ✓, 1.000 ✓, 1.001 ✗, NaN ✗, Infinity ✗, -Infinity ✗ - Float cases step 0.001 either side of each edge.
- Input:
Date, 2026-01-01 to 2026-12-31 - Result:
2025-12-30 ✗, 2025-12-31 ✗, 2026-01-01 ✓, 2026-01-02 ✓, 2026-07-02 ✓, 2026-12-30 ✓, 2026-12-31 ✓, 2027-01-01 ✗, 2028-02-29 ✗, 2029-02-29 ✗, not-a-date ✗ - The leap-day case uses the first leap year at or after the start year (2028), which here falls outside the range, so it is marked invalid.
04Common use cases
- Writing Jest or pytest parametrized cases for an age field that accepts 0 to 150
- Checking a password length rule of 8 to 64 characters in a signup form
- Testing a cart quantity limit of 1 to 99 in an e-commerce checkout API
- Preparing manual QA test steps for a numeric input in a mobile app
- Verifying that an array field in a JSON payload rejects too many items
05Tips
- Inclusive versus exclusive bounds is the classic bug; check if your spec says "up to 100" or "less than 100" before trusting the valid labels.
- Pair boundary values with equivalence partitioning: one nominal value per partition plus the edges usually covers more than random inputs.
- For dates, also test around midnight in the user's time zone if your app converts local times to UTC; that's where off-by-one-day bugs hide.
- Long string values are shown truncated to 30 characters in the list, but the length in the label is what matters.
- Run the same field twice, once for the UI limit and once for the API limit. When the two ranges differ, the gap between them is where bad data slips in.
06Related concepts
Boundary value analysis, Equivalence partitioning, Off-by-one error, Input validation, Black-box testing.
Frequently Asked Questions
What is Boundary Value Generator?
Boundary Value Generator is a free, browser-based developer tool on AIDToolStack. Generate boundary value test inputs It requires no installation or sign-up and works entirely in your browser.
Is Boundary Value Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Boundary Value Generator store my data?
No. It runs in your browser; nothing is uploaded.