Change the default application for a file type on Ubuntu

Assign a preferred app to a specific file extension using the Files (file manager) properties Open With controls — plus a brief note about using MIME settings for advanced users.

What the video covers

This guide shows how to change the default application for a specific file extension using Ubuntu’s Files (file manager) interface. It also notes the alternative of editing MIME-type settings for advanced users. It does not cover installing applications or specific desktop environment variants.

Watch the video on YouTube

Step-by-step instructions

  1. Open the Files app
    Launch Ubuntu’s file manager (often called Files or Nautilus) and navigate to a folder containing a file of the type you want to change (for example a .pdf, .txt, .jpg, or .mp4).
  2. Open the file’s Properties
    Right-click the file and choose Properties from the context menu.
  3. Select the Open With tab
    In the Properties window, switch to the Open With tab (or section) which lists applications that can open this file type.
  4. Choose the preferred application
    Select the application you want to use from the list. If the application is not listed, use any available option to view more applications or find/install the desired app and then reopen Properties.
  5. Set as default
    Click the control to make the selected application the default for this file type (Set as Default or equivalent). Close the Properties window when done.
  6. Verify the change
    Double-click another file with the same extension to confirm it now opens with the chosen application.

Watch the video

Video thumbnail for Change the default application for a file type on Ubuntu Play tutorial

Watch on YouTube

Why it matters

Changing default apps makes your desktop open files with the programs you prefer, improving workflow and consistency across similar file types (for example PDFs, images, text files, or videos).

Check your result

After completing the steps, double-click a file with the same extension and confirm it opens in the application you set as default.

Troubleshooting

If the desired application does not appear in the list, ensure it is installed and appears in the application overview. If it still does not show, you may need to register the app’s MIME support or use MIME-type tools in the terminal to associate the file type manually.