The fastest way to change a file type
The quickest method is to rename the file and swap out the three-letter extension at the end. Right-click the file, select Rename, and change what comes after the final period—for example, from .txt to .csv. Windows 10 will ask you to confirm the change. This works for most file types you'll encounter.
However, renaming the extension alone does not convert the file's contents. If you rename a Word document from .docx to .pdf, the file is still a Word document inside—it just wears a different label. The program that opens it may refuse to read it, or it may open but display garbage. Renaming works when the file is already in the format you need but has the wrong label, or when you're switching between formats that store the same kind of data (like .jpg to .png for images).
Key Takeaways
- Renaming the file extension (the three letters after the period) is the fastest method, but it only changes the label—not what's inside the file.
- To actually convert a file from one format to another, you need software that reads the original format and saves it in the new one.
- Windows 10 hides file extensions by default; turn them on in File Explorer settings so you can see and edit them.
- Some file types are locked to specific programs—you may need to install new software or use an online converter if your current program won't save in the format you want.
Turning on file extensions so you can see them
Windows 10 hides file extensions by default, so you may not see the .docx or .jpg part at all. To make extensions visible, open File Explorer, click the View tab at the top, and check the box next to File name extensions. From then on, every file will show its full name including the extension.
Once extensions are visible, you can right-click any file, choose Rename, and edit the extension directly. Be careful to keep the period in place—change document.docx to document.txt, not documenttxt. Windows will warn you that changing the extension might make the file unusable; that warning is there for a reason, but it's safe to proceed if you understand what you're doing.
Converting files using the program that created them
If you need to actually convert a file—not just rename it—the easiest route is usually the program you already have. Open the file in its original program, then use File > Save As and choose a different format from the dropdown menu.
For example, if you have a Word document and need it as a PDF, open it in Microsoft Word, click File, select Save As, and choose PDF from the "Save as type" list. The program handles the conversion automatically. The same method works in Excel (to save as .csv or .xlsx), Paint (to save as .png, .jpg, or .bmp), and most other Windows programs.
Not every program supports every format. If the format you want doesn't appear in the dropdown, that program cannot save in that format, and you'll need to use different software.
Using online converters when you don't have the right software
If you don't own the program that created the file, or if that program doesn't support the format you need, an online converter can often do the job. Websites like CloudConvert, Zamzar, and Online-Convert accept file uploads, convert them, and let you read the result. These services are free for most common conversions.
Upload your file, select the output format you want, and wait for the conversion to finish—usually a few seconds to a few minutes depending on file size. read the converted file and save it to your computer. Be aware that online converters require you to send your file to someone else's server, so avoid using them for sensitive documents like tax returns or medical records.
Changing image file types
Images are among the easiest files to convert because Windows 10 includes a built-in tool. Right-click an image file, select Open with, and choose Photos (the default Windows image viewer). Once the image is open, click the three-dot menu in the top right, select Edit, then Save a copy. You can then save it in a different format—.jpg, .png, .bmp, or .gif.
Alternatively, open the image in Paint (search for "Paint" in the Start menu), click File > Save As, and choose your desired format from the dropdown. Paint supports the most common image types and is already installed on every Windows 10 machine.
Changing document and text file types
Text files and documents are trickier because the format affects how the content is stored. A plain text file (.txt) contains only letters and numbers; a Word document (.docx) can store formatting, images, and styles. Converting between them means losing information.
If you have Microsoft Word, open the document and use File > Save As to choose a new format. Word can save as .docx, .doc, .pdf, .rtf, and plain text (.txt). If you don't have Word, Google Docs (free, online) can open Word files and save them as PDFs or plain text. LibreOffice (free, downloadable) is another option that handles most document formats.
What happens when you change a file type the wrong way
If you rename a file's extension without actually converting it, the file may not open at all. You might see an error message saying the program cannot read the file, or the program might open it but display corrupted text or images. This doesn't damage the original file—renaming it back to its correct extension will restore it.
If you're unsure whether a conversion will work, make a copy of the file first. Right-click it, select Copy, then Paste in the same folder. Experiment with the copy, and if something goes wrong, you still have the original.
Frequently Asked Questions
Can I change a .docx file to .pdf by just renaming it?
No. Renaming changes only the label, not the contents. The file will still be a Word document, and programs expecting a PDF will refuse to open it or display it incorrectly. To convert Word to PDF, use File > Save As in Word and select PDF from the dropdown, or use an online converter.
What's the difference between .jpg and .png?
.jpg is smaller and better for photographs; .png is larger but supports transparent backgrounds and is better for graphics with solid colors. You can convert between them using Paint, Photos, or an online converter, but the conversion doesn't change which format is "better"—it just changes the file type. A .jpg converted to .png will still look like a photograph.
Why does Windows hide file extensions by default?
Microsoft hides extensions to make filenames cleaner for casual users. However, this also makes it easier for malware to disguise itself—a file named "document.txt.exe" might appear as just "document.txt" if extensions are hidden. Turning on extensions is a good security habit.
Can I change a .exe file to something else to make it safe?
No. Renaming a .exe file doesn't make it safe; it just hides what it is. If you don't trust a file, don't run it, regardless of what extension it has. Changing the extension won't change its behavior.
What if the format I want doesn't appear in the Save As menu?
The program you're using doesn't support that format. Try a different program (like LibreOffice instead of Word, or an online converter), or check the program's settings to see if additional formats can be installed as add-ons.