.m4 M4 macro

Text & source code

MIME typeapplication/x-m4
DescriptionM4 macro
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .m4 file?

A .m4 file is a “M4 macro” (MIME type application/x-m4).

How do I open a .m4 file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .m4 file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.m4 shows the guessed type.

Which format is .m4 based on?

Technically a .m4 file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .m4?

The MIME type is application/x-m4. In the Apache web server: AddType application/x-m4 .m4; in nginx: types { application/x-m4 m4; }.

Nearby entries