How to Create New Files in Windows 11
- 22 steps
- Needs administrator rights
Right-click empty space in a folder or on the Desktop, point to New, and pick a file type such as Text Document. That takes two clicks. This page covers six ways to create a file, including the command line.
Ctrl+Shift+N creates a folder, not a file. It works in File Explorer and on the Desktop.
Right-click an empty space in the folder or on the Desktop, point to New, and click Text Document to create a plain.txt file. Type a name and press Enter, and the file is saved under that name. Use File Explorer’s New button on the command bar as an alternative. Ctrl+Shift+N creates a folder, not a file.
1Create a New File Using File Explorer
The right-click menu in File Explorer (the Windows file browser) is the method most people use every day. It works the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2).
- Open File Explorer. Press Win+E or click the folder icon on the taskbar. The Win+E shortcut works even if the icon is not on your taskbar. The folder list is in the left sidebar.

File Explorer icon on the taskbar Your window looks slightly different if you changed the default start folder. The sidebar and the address bar are the same either way.
- Right-click an empty space in the folder. Click blank space, not a file or folder. Otherwise you get the menu for that item.
- Point to New and click the file type you want. Choose Text Document to make a plain
.txtfile. The list depends on your installed apps. With Microsoft Office, you also see Word, Excel and PowerPoint entries. The new file appears with its name highlighted.
Creating new file from right-click menu 📝Good to KnowIf New is missing, you are in a view that is not a real folder, such as Home or This PC. Open a folder like Documents and try again. Administrator rights: some system folders, such as those under 📁C:\Windows , refuse new files unless you have administrator rights. - Type a name and press Enter. The name box is already active, so start typing. If you click away or press Esc first, the file keeps its default name, such as New Text Document. To rename it later, select it and press F2.

Naming the new file in Windows 11
Windows hides file extensions such as .txt by default, so you see only the name you typed. To show them, open the View menu in File Explorer and go to View Show File name extensions. Turn it on before you rename a file if you want to change its type. Turn it off the same way to undo it.
2Create a New File Using the File Explorer Command Bar
The command bar is the toolbar across the top of File Explorer. Its New button does the same job as the right-click menu. Use it if you prefer a toolbar to the more compact Windows 11 right-click menu.
- Open File Explorer and go to the folder you want. Press Win+E if it is not already open. The command bar runs across the top.
- Click the New button on the command bar. A drop-down list opens. It usually offers Folder, Shortcut and the file types you can create, such as Text Document.
- Select the file type. The new file appears in the folder with its name highlighted.
- Type a name and press Enter. The file is saved in that folder under that name.

Create new file using command bar
If the New button is greyed out, you are in a location where files cannot be created, such as This PC. Open a real folder and the button becomes available. If your command bar looks different from the one described here, your Windows 11 build may be older. Updating Windows usually fixes that.
3Create a New File Right on the Desktop
This method skips File Explorer. The Desktop is a folder in your user profile, so it uses the same New menu.
- Show the Desktop. Press Win+D or minimize all windows. Press Win+D again to bring your windows back.
- Right-click an empty space on the Desktop. Avoid icons, which open their own menu.
- Point to New and choose the file type. A new file icon appears with its name highlighted.
- Type a name and press Enter. The icon now shows the name you typed.

Create new file on desktop
If your Desktop icons are hidden, the new file is created but you cannot see it. Right-click the Desktop, choose View, and make sure Show desktop icons is ticked. If OneDrive syncs your Desktop, the file is also uploaded to the cloud.
4Create a New File Using Windows Terminal (Command Prompt)
Command Prompt (the classic Windows text-command shell) creates a file with a single command. In your target folder, type copy NUL "YourFileName.txt". The result is an empty file of zero bytes, the same as one made from the right-click menu.
- Open Command Prompt in Windows Terminal. Press Win+S, type Windows Terminal or
cmd, then open the app. Windows Terminal opens a PowerShell tab by default. To get Command Prompt, search forcmdor open a new Command Prompt tab from the drop-down arrow next to the plus tab button. The prompt looks like 📁C:\Users\ >.YourName - Move to the folder where you want the file. The cd command changes the current folder. Type, for example:
cd DocumentsPress Enter and the prompt shows the new folder. If the folder is on another drive, type the drive letter first, such as D:, and press Enter. Put the path in quotation marks if it contains spaces.
- Create the file. Type:
copy NUL "YourFileName.txt"⚠️WarningReplace YourFileName with the name you want. Press Enter and Command Prompt reports that one file was copied. Pick a name that does not already exist in that folder, because copying over an existing file can replace its contents.
5Create a New File Using Windows Terminal (PowerShell)
PowerShell (a command-line shell built around scripting) uses cmdlets, which are its built-in commands. In your target folder, type New-Item -Name "YourFileName.txt" -ItemType "file". Choose PowerShell if you later want to script file creation.
- Open Windows Terminal with PowerShell. Right-click the Start button and pick Windows Terminal, or press Win+X and select Windows Terminal. On some Windows 11 builds the entry is labelled Terminal. The prompt starts with PS.
- Move to the target folder. Use
cdas you do in Command Prompt. The prompt updates to show the current folder. Put quotation marks around any path with spaces. - Create the file. Type:
New-Item -Name "YourFileName.txt" -ItemType "file"Press Enter and PowerShell prints a small table with the new file’s name and details. If a file with that name already exists, PowerShell shows an error instead of overwriting it.
6Use Keyboard Shortcuts to Create a New Text File
This sequence creates a blank text file in File Explorer without the mouse. Press the keys one after the other, not all at once.
- Open the target folder in File Explorer. Click the window so it is the active one. The keys work only when File Explorer has focus.
- Press Alt+F, then W, then T. Alt+F opens the File menu. The next two letters pick the New and Text Document entries.
- Type a name and press Enter. The file is saved in the folder you opened.

Naming new file after shortcut creation
This shortcut depends on the File Explorer menu layout, which can differ between Windows 11 builds. If nothing happens or a different menu opens, use the right-click New menu instead.
Summary
If a method fails in one location, the folder is usually not a real folder, or you lack permission to write there. Try a folder like Documents instead.
To rename the file or change its format, see this guide to renaming files in Windows 11. Changing the extension, such as .txt to .md, changes which app opens the file. It does not convert the contents.
Frequently asked questions
How to create a file?
Open the folder where you want the file, then right-click an empty spot inside it. Point to New and choose a file type, such as Text Document. Type a name and press Enter. Right-click blank space rather than a file or folder, or you will get that item's menu instead.
How to make file?
Open File Explorer with Win+E and go to the folder you want. Click the New button on the command bar and select a file type, such as Text Document. Type a name and press Enter. The file is saved in that folder under the name you typed.
How to open a new file?
To make a new file and open it, create it first. Right-click blank space in a folder or on the Desktop, point to New, and choose a file type. Type a name and press Enter. Then double-click the file, and Windows opens it in the app set for that file type.
How to make a new file?
Right-click an empty space in a folder or on the Desktop, point to New, and pick a file type such as Text Document. Type a name and press Enter. Use the same steps in File Explorer or on the Desktop. Avoid clicking an existing file or folder, since that opens its own menu.
How do I make a file?
Open the folder where you want the file, right-click blank space, point to New, and choose a file type such as Text Document. Type a name and press Enter. If you prefer a toolbar, the New button on the File Explorer command bar does the same job.
Still have a question?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!