Why can i create file with reserved words in Windows 11? Like CON.txt
08:24 03 Nov 2025

I read everywhere that reserved file names like CON or NUL can't be used to create files on Windows no matter if there is a file extension following or not.

Even the Windows docs say :

Do not use the following reserved names for the name of a file:

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, COM¹, COM², COM³, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, LPT¹, LPT², and LPT³. Also avoid these names followed immediately by an extension; for example, NUL.txt and NUL.tar.gz are both equivalent to NUL. For more information, see Namespaces.

https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file

And indeed, the Explorer doesn't let me create a file named just CON or NUL, but this doesn't seem to be the case, when I put a file extension behind it, like CON.txt. Did something change recently? Are the docs outdated?

enter image description here

windows file naming