Google Drive Drawing link (.gdraw)
.gdraw file signature | application/octet-stream
Google Drive Drawing link
Magic Bytes
Offset 0
7B 22 75 72 6C 22 3A 20 22 68 74 74 70 73 3A 2F
Sources: Gary Kessler
Extension
.gdraw
MIME Type
application/octet-stream
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .gdraw files in Python
def is_gdraw(file_path: str) -> bool:
"""Check if file is a valid GDRAW by magic bytes."""
signature = bytes([0x7B, 0x22, 0x75, 0x72, 0x6C, 0x22, 0x3A, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3A, 0x2F])
with open(file_path, "rb") as f:
return f.read(16) == signature
How to validate .gdraw files in Node.js
function isGDRAW(buffer: Buffer): boolean {
const signature = Buffer.from([0x7B, 0x22, 0x75, 0x72, 0x6C, 0x22, 0x3A, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3A, 0x2F]);
return buffer.subarray(0, 16).equals(signature);
}
How to validate .gdraw files in Go
func IsGDRAW(data []byte) bool {
signature := []byte{0x7B, 0x22, 0x75, 0x72, 0x6C, 0x22, 0x3A, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3A, 0x2F}
if len(data) < 16 {
return false
}
return bytes.Equal(data[:16], signature)
}
API Endpoint
/api/v1/gdraw
curl https://filesignature.org/api/v1/gdraw
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .gdraw file?
A .gdraw file is a Google Drive Drawing link file. Google Drive Drawing link
What are the magic bytes for .gdraw files?
The magic bytes for Google Drive Drawing link files are 7B 22 75 72 6C 22 3A 20 22 68 74 74 70 73 3A 2F at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .gdraw file?
To validate a .gdraw file, read the first bytes of the file and compare them against the known magic bytes (7B 22 75 72 6C 22 3A 20 22 68 74 74 70 73 3A 2F) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .gdraw files?
There is no officially registered MIME type for .gdraw files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .gdraw files?
Google Drive Drawing link (.gdraw) 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.