Convert png to x-png

Convert PNG to X-PNG

Learn about PNG and X-PNG formats and how to assign the X-PNG MIME type for legacy browser compatibility.

Convert PNG files online

We don’t have a dedicated online converter for PNG to X-PNG yet, but you can convert PNG files online to these and more formats:

How to convert png to x-png file

101convert.com Assistant Avatar

101convert.com assistant bot
1yr

Understanding png and x-png file formats

PNG (Portable Network Graphics) is a widely used raster image format known for its lossless compression and support for transparency. It is commonly used for web graphics, digital photos, and images requiring high quality and transparency.

X-PNG is not a distinct file format but rather an alternative MIME type (image/x-png) used in older web browsers to identify PNG images. The actual file content remains a standard PNG file; only the MIME type differs. Therefore, converting a PNG file to X-PNG simply involves renaming or reassigning the MIME type, not changing the file's internal structure.

How to convert png to x-png

Since X-PNG is not a separate file format, you do not need to convert the file itself. If you need to serve a PNG file with the image/x-png MIME type (for example, for compatibility with legacy browsers), you can:

  • Rename the file extension from .png to .x-png (optional, rarely required).
  • Configure your web server to serve PNG files with the image/x-png MIME type.

For most modern applications, this is unnecessary, as image/png is the standard MIME type.

Best software or converter for png to x-png

There is no dedicated software for converting PNG to X-PNG, as the file content is identical. However, you can use any file manager to rename the file extension if needed. For web servers, you can set the MIME type using server configuration:

  • Apache: Add AddType image/x-png .png to your .htaccess file.
  • Nginx: Add types { image/x-png png; } to your server block.

For image editing or conversion, tools like IrfanView, XnConvert, or GIMP can open and save PNG files, but they do not specifically handle X-PNG as a separate format.

Summary

Converting PNG to X-PNG is generally a matter of MIME type assignment, not file conversion. Use server configuration or simple file renaming if required for legacy compatibility.


Note: This png to x-png conversion record is incomplete, must be verified, and may contain inaccuracies. Please vote below whether you found this information helpful or not.

Was this information helpful?

Additional formats for
png file conversion

Reverse conversion

Convert to x-png from
other formats

Share on social media: