M4 preprocessor macro
File type: Source code and script file
An m4 file is plain-text input for the M4 macro processor. It contains macro definitions and text that M4 expands to produce output.
Found 2 different file type records with the same m4 filename suffix.
File type category:
Source code and script file
Date updated: November 15, 2026
M4 is a general-purpose macro processor designed by Brian Kernighan and Dennis Ritchie. An m4 file contains preprocessor macros and other text for M4 to process.
The processor expands macros to generate text for use elsewhere. M4 is available on Linux/Unix, where m4 files are used in software development; the file is source input, not a finished document.
Use the M4 processor on Linux/Unix to expand the macros in an m4 file. A plain-text editor can display and edit its contents.
An m4 file does not have a standard document conversion. Run it through the M4 processor to generate expanded text; the resulting output depends on the macros and input text in the file.
text/plainapplication/x-m464 6E 6C
dnl
File type category:
Graphics file
Date updated: November 6, 2023
File extension m4 seems to be used for one of the variants of stitching or embroidery formats used in machines produced by the Japanese company Juki.
Contains instructions in specific format for Juki machines, but might have been used in some older models only.
Embird lists Juki formats, including M4, as supported.
As with any other embroidery formats, export is possible to other formats.
Software applications that can open m4 files:
Microsoft Windows
Software applications that can edit m4 files:
Microsoft Windows
Software capable of saving m4 files:
Microsoft Windows