M4

m4 icon

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.

What is m4 file?

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.

How to open m4 file?

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.

How to convert m4 file?

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.

Technical details

MIME types
  • text/plain
  • application/x-m4
File signature
HEX 64 6E 6C
ASCII dnl

Suggested software to open m4 file:

Associated software actions with the m4 file

Software applications that handle other tasks involving m4 files:

Linux/Unix

Juki embroidery design

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.

How to open m4 file?

Embird lists Juki formats, including M4, as supported.

How to convert m4 file?

As with any other embroidery formats, export is possible to other formats.

Associated software actions with the m4 file

Software applications that can open m4 files:

Software applications that can edit m4 files:

Software capable of saving m4 files:

Related file extensions