This article explains what a MIME type is, why you may need to create one, and how to add a custom MIME type in cPanel. Adding a MIME type helps web servers and browsers correctly identify and handle specific file types on your website.
You may need to build a MIME type in cPanel when:
- Certain files are downloading instead of opening in the browser.
- You are using custom file extensions.
- Your website requires proper handling of specific content types (for example, fonts, media, or compressed files).
What Is a MIME Type?
A MIME (Multipurpose Internet Mail Extensions) type tells a browser how to process a particular file type. It defines the relationship between a file extension and the type of content it represents.
For example:
- text/html > .html
- application/pdf > .pdf
- image/png > .png
If a file extension does not have a defined MIME type, browsers may not display or handle the file correctly.
Steps to Build a MIME Type in cPanel:
- Access your cPanel account using your login credentials.
- Navigate to Advanced > MIME Types.

- On the MIME Types page, fill in the following fields:
- MIME Type: Enter the correct MIME type (for example, application/json)
- Extension(s): Enter the file extension(s) without dots, separated by spaces (for example, json txt)
- Click the Add button to save the changes.

- A confirmation message will appear, indicating that the MIME type has been successfully added.
You have successfully built a custom MIME type in cPanel. This ensures that files with the specified extensions are correctly recognised and handled by browsers and applications.
If you need assistance or are unsure about the correct MIME type for a file extension, please contact our support team, available 24×7.