The fastest way to make a new file depends on what you're using

On Windows, right-click the empty space in a folder, hover over New, and click the file type you want — Text Document, Folder, or whatever programs you have installed. On Mac, open Finder, go to the folder where you want the file, then press Command+N to make a new folder, or use File > New Folder. To create a text file on Mac, you'll need a text editor like TextEdit (open it, go to Format menu and choose Plain Text, then save). On Linux with a graphical desktop, right-click in a folder and select Create Document or New File, depending on your desktop environment.

The method you choose matters because some create empty files when ready while others open an process first. If you're making dozens of files for a project, knowing the keyboard shortcut saves time. If you're making a single document you'll edit right away, opening the process first is often simpler.

Key Takeaways

  • Right-click in an empty folder space on Windows and select New to see all file types your computer can create.
  • Mac users can press Command+N for a new folder, but creating text files requires opening TextEdit or another text editor first.
  • Linux file managers usually have a right-click menu option to create new files or folders, though the exact wording varies by desktop.
  • Naming your file clearly when you create it prevents confusion later and makes searching easier.

Creating files on Windows

Open File Explorer and navigate to the folder where you want the new file. Right-click on empty space inside that folder — not on an existing file. A menu appears with a New option. Hover over it and you'll see a submenu listing what you can create: Text Document, Folder, Shortcut, and any other file types your installed programs support.

Click the type you want. Windows creates the file with a default name like "New Text Document.txt" and the name is highlighted so you can type over it when ready. Type your actual filename and press Enter. The file now exists in that folder, empty and ready to open.

If you don't see the file type you need in the New menu, the program that creates that type isn't installed yet. For example, if you don't see "Word Document" in the menu, Microsoft Office isn't on your computer. You can still create a text file and open it with any program later.

Creating files on Mac

Open Finder and navigate to the folder where you want the file. To create a new folder, press Command+N or go to File menu and select New Folder. The folder appears with the name "untitled folder" highlighted, ready for you to type a new name.

Creating a text file on Mac requires opening a text editor first. Open TextEdit (search for it in Spotlight by pressing Command+Space, typing "TextEdit", and pressing Enter). In TextEdit, go to the Format menu and select Plain Text — this is important because the default is rich text, which adds formatting you usually don't want. Then go to File > Save, choose your folder, type your filename, and click Save.

If you use a text editor like VS Code or Sublime Text, you can create files directly within those programs. Open the editor, go to File > New, write or paste your content, then save it to your chosen folder.

Creating files on Linux

Open your file manager (usually called Files, Nautilus, Dolphin, or Thunar depending on your desktop environment). Navigate to the folder where you want the file. Right-click on empty space and look for an option like Create Document, New File, or Create Empty File. The exact wording varies, but the concept is the same.

Click that option and a new file appears, usually with a default name like "New Document" or "untitled". The name is often highlighted so you can type over it. Type your filename with the extension you need — for example, "notes.txt" for a text file or "script.py" for a Python script — and press Enter.

Alternatively, open a terminal and use the touch command to create an empty file: type touch filename.txt and press Enter. This creates the file when ready in your current directory without opening any graphical menu.

Naming your file so you can find it later

The name you give a file matters more than you might think. Use names that describe what's inside: "2024 tax documents" is better than "stuff", and "client contact list" is better than "list". Avoid special characters like asterisks, forward slashes, or question marks — they can cause problems on some systems. Stick to letters, numbers, hyphens, and underscores.

Include the file extension (the part after the dot) so your computer knows what program to open it with. A file named "budget" might not open when you double-click it, but "budget.xlsx" opens in a spreadsheet program automatically. If you're not sure what extension to use, check what the program suggests when you save.

If you're creating many related files, use a consistent naming pattern. For example, "project-notes-jan", "project-notes-feb", "project-notes-mar" makes them straightforward to sort and find. Avoid spaces if you work in a terminal or with code — use hyphens or underscores instead, like "project-notes" rather than "project notes".

File types and what they mean

When you create a new file, you're choosing a file type — the format that tells your computer what kind of information it holds. A text file (.txt) holds plain words with no formatting. A Word document (.docx) holds text with fonts, colors, and styles. A spreadsheet (.xlsx) holds data in rows and columns. An image file (.jpg or .png) holds a picture.

The file type is determined by the extension — the letters after the final dot in the filename. You can change the extension by renaming the file, but that doesn't change what's actually inside. Renaming "photo.jpg" to "photo.txt" doesn't turn the photo into text; it just confuses your computer about what program should open it.

When you right-click and select New, you're only seeing file types that make sense to create empty. You can't create an empty .jpg file this way because image files need actual image data. You create images by taking a screenshot, using a camera, or opening an image editor and saving your work.

What to do if the file type you need isn't in the menu

If you right-click and don't see the file type you want to create, the program that handles that type probably isn't installed. For example, if you want to create a Photoshop file (.psd) but Photoshop isn't on your computer, it won't appear in the New menu.

You have two options: install the program that creates that file type, or create a plain text file and save it with the extension you need. For example, you can create a text file, write some code in it, save it as "script.py", and Python will recognize it as a Python script even though you created it as text.

Some file types, like .pdf, can only be created by specific programs. You can't right-click and create a PDF — you have to open a program that exports to PDF (like Microsoft Word or Google Docs) and save your work as a PDF from inside that program.

Frequently Asked Questions

Can I create a file without an extension?

Yes, but it's not recommended. Without an extension, your computer doesn't know what program should open the file when you double-click it. You can create a file named just "notes" with no .txt at the end, but you'll have to right-click it and choose "Open with" every time you want to edit it. Adding the extension takes one second and saves frustration later.

What's the difference between creating a file and creating a folder?

A folder is a container that holds files and other folders. A file holds actual content — text, images, code, data. You create folders to organize your files, and you create files to hold your actual work. You can have empty folders, but an empty file serves no purpose until you add content to it.

Why does my new file disappear after I create it?

It probably didn't disappear — your file manager might just not be showing it. Some file managers hide files that start with a dot (like .config) or files with certain extensions. Try pressing Ctrl+H on Windows or Linux, or Command+Shift+. (period) on Mac to show hidden files. If you still don't see it, check that you saved it in the folder you thought you did by looking at the file path at the top of the window.

Can I create a file with spaces in the name?

Yes, spaces work fine in filenames on Windows and Mac. On Linux, spaces work too, but they can cause problems if you use the terminal or write code that reads the filename. If you're only using the graphical file manager, spaces are fine — just use hyphens or underscores if you ever plan to work with the file in a terminal.