In computer typography, white space is any character representing a horizontal or vertical space. When such whitespace characters are rendered, it will typically occupy space on a page, but its resulting appearance will be a ‘blank’. There are various whitespace characters representing various ‘space’ widths. Only the ASCII Space (0x20) and ASCII Period (0x24) characters are handled specially by the Object Manager.
Can you use Whitespace characters in File and Folder names
Windows 11/10/8 treats Whitespace characters in File and Folder names as follows:
- If a file is saved as ‘ Twc.txt’, where the leading character(s) is an ASCII Space (0x20), it will be saved as ‘Twc.txt’
- If a file is saved as ‘Twc.txt ‘, where the trailing character(s) is an ASCII Space (0x20), it will be saved as ‘Twc.txt’.
- If a file is saved as ‘ Twc.txt’, where the leading character(s) is an alternate whitespace character, such as the Ideographic Space (0x3000), it will be saved as ‘ Twc.txt ‘. The leading whitespace characters are not removed.
- If a file is saved as ‘Twc.txt ‘, where the trailing character(s) is an alternate whitespace character, such as the Ideographic Space (0x3000), it will be saved as ‘Twc.txt ‘. The trailing whitespace characters are not removed.
- If a file is saved as ‘.Twc.txt’, where the leading character(s) is an ASCII Period (0x2E), it will be saved as ‘.Twc.txt’.
- If a file is saved as ‘Twc.txt.’, where the trailing character(s) is an ASCII Period (0x2E), it will be saved as ‘Twc.txt’.
Win32 and WinRT APIs have different ecosystem requirements, as a result of which, File and Folder names that begin or end with a whitespace character are enumerated differently by each of them.
Is it OK to put spaces in file names?
Yes, you can put spaces in file names while renaming a file on Windows PC. Whether you use Windows 11, Windows 10, or any other older version, there is no harm in adding a space in the file name. However, the space must be contained within two words or digits.
Can Windows file names have spaces?
Yes, Windows file names can have spaces. For example, you can rename a file to thewindowsclub as well as the windows club without any problem. No matter whether it is a document, image, video, or anything else, you can use spaces in the file names on Windows 11/10 PC.
You can read more at KB2829981.