Skip to content
Windows 🟡 Intermediate

How to Create New Files in Windows 11

Richard
Written by
Richard
Updated 8 min read
Windows 11 File Explorer on a desktop with the right-click New menu open, showing how to create a new file in a folder.
Windows 11 File Explorer on a desktop with the right-click New menu open, showing how to create a new file in a folder.
Before you start
  • 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.

⚡ Quick Answer

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.

Advertisement

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).

  1. 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
    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.

  2. Go to the folder where you want the file. Pick a folder such as Documents or Desktop in the sidebar. If the folder is not listed, double-click through folders in the main pane or type the path into the address bar.
  3. Right-click an empty space in the folder. Click blank space, not a file or folder. Otherwise you get the menu for that item.
  4. Point to New and click the file type you want. Choose Text Document to make a plain .txt file. 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
    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.
  5. 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
    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.

Advertisement

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.

  1. 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.
  2. 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.
  3. Select the file type. The new file appears in the folder with its name highlighted.
  4. Type a name and press Enter. The file is saved in that folder under that name.
    Create new file using command bar
    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.

  1. Show the Desktop. Press Win+D or minimize all windows. Press Win+D again to bring your windows back.
  2. Right-click an empty space on the Desktop. Avoid icons, which open their own menu.
  3. Point to New and choose the file type. A new file icon appears with its name highlighted.
  4. Type a name and press Enter. The icon now shows the name you typed.
    Create new file on desktop
    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.

  1. 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 for cmd or open a new Command Prompt tab from the drop-down arrow next to the plus tab button. The prompt looks like 📁C:\Users\YourName>.
  2. Move to the folder where you want the file. The cd command changes the current folder. Type, for example:
    cd Documents

    Press 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.

  3. 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.
Advertisement

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.

  1. 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.
  2. Move to the target folder. Use cd as you do in Command Prompt. The prompt updates to show the current folder. Put quotation marks around any path with spaces.
  3. 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.

  1. 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.
  2. Press Alt+F, then W, then T. Alt+F opens the File menu. The next two letters pick the New and Text Document entries.
  3. Type a name and press Enter. The file is saved in the folder you opened.
    Naming new file after shortcut creation
    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.

Tags: #Windows 11

Did this guide fix your problem?

Richard

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.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *