Personal folder path length audit calculator

Counts JavaScript UTF-16 code units in each supplied path, including separators.

Your inputs

Input format

Use this format with your own values:

/a/file.txt
/folder/long-name.txt

Use the units shown.

Path lengths (UTF-16 code units)
11, 21
Path row numbers exceeding limit
2
Longest supplied path length
21

Your calculation
How is this calculated?

Count code units in each complete line, without trimming path spaces.

Compare each measured path length with the supplied limit.

Take the largest measured path length.

Counts JavaScript UTF-16 code units in each supplied path, including separators. This is not a platform-path validator; supply a limit using the same counting convention.

MDN String length — UTF-16 code units ↗

Try an example

Worked example

Path lengths (UTF-16 code units): 11, 21

Inputs
  • File paths, one per line: /a/file.txt /folder/long-name.txt
  • Supplied maximum path length (UTF-16 code units): 15

Compare inputs

Path lengths (UTF-16 code units): 11, 21

Inputs
  • File paths, one per line: /a/file.txt /folder/long-name.txt
  • Supplied maximum path length (UTF-16 code units): 21
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.