TEXINFO (.texinfo)
.texinfo file signature | application/x-texinfo
Texinfo is a documentation markup format created by the GNU Project and maintained within the GNU documentation system. It is used to author software manuals, reference guides, and other technical documents that can be converted into printed, HTML, and Info outputs. The format is generally safe and has long been used in GNU and Free Software documentation; it is not a binary document type, but files should still be reviewed when sourced from untrusted repositories.
Magic Bytes
Offset 0
5C 69 6E 70 75 74 20 74 65 78 69 6E 66 6F
Sources: Apache Tika
Extension
.texinfo
MIME Type
application/x-texinfo
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .texinfo files in Python
def is_texinfo(file_path: str) -> bool:
"""Check if file is a valid TEXINFO by magic bytes."""
signature = bytes([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F])
with open(file_path, "rb") as f:
return f.read(14) == signature
How to validate .texinfo files in Node.js
function isTEXINFO(buffer: Buffer): boolean {
const signature = Buffer.from([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F]);
return buffer.subarray(0, 14).equals(signature);
}
How to validate .texinfo files in Go
func IsTEXINFO(data []byte) bool {
signature := []byte{0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74, 0x20, 0x74, 0x65, 0x78, 0x69, 0x6E, 0x66, 0x6F}
if len(data) < 14 {
return false
}
return bytes.Equal(data[:14], signature)
}
API Endpoint
/api/v1/texinfo
curl https://filesignature.org/api/v1/texinfo
See the full API documentation for all endpoints and parameters.
Related Formats
Frequently Asked Questions
What is a .texinfo file?
A .texinfo file is identified by the magic bytes 5C 69 6E 70 75 74 20 74 65 78 69 6E 66 6F at byte offset 0. Texinfo is a documentation markup format created by the GNU Project and maintained within the GNU documentation system. It is used to author software manuals, reference guides, and other technical documents that can be converted into printed, HTML, and Info outputs. The format is generally safe and has long been used in GNU and Free Software documentation; it is not a binary document type, but files should still be reviewed when sourced from untrusted repositories.
What are the magic bytes for .texinfo files?
The magic bytes for TEXINFO files are 5C 69 6E 70 75 74 20 74 65 78 69 6E 66 6F at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .texinfo file?
To validate a .texinfo file, read the first bytes of the file and compare them against the known magic bytes (5C 69 6E 70 75 74 20 74 65 78 69 6E 66 6F) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .texinfo files?
The primary MIME type for .texinfo files is application/x-texinfo.
Is it safe to open .texinfo files?
TEXINFO (.texinfo) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.