.GGUF

GGUF File

GGML Universal Format File
Ask a question
QUICK ANSWER

A .gguf file is a GGML Universal Format File, the binary container used by llama.cpp and related tools to store a large language model as a single file. It holds the model weights, tokenizer and all metadata together, usually quantized so the model runs on ordinary hardware. Open or run a .gguf model with a local inference app such as LM Studio, Ollama, Jan or GPT4All, or load it directly with llama.cpp.

Developer: Georgi Gerganov and the ggml/llama.cpp community Category: Data Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Sep 4, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the GGUF file format?

A .gguf file is a GGML Universal Format File, the binary container used by llama.cpp to store a large language model. Georgi Gerganov and the ggml community introduced it in August 2023 as the successor to the older GGML, GGMF and GGJT formats. A single .gguf file holds the model weights, the tokenizer and every hyperparameter as typed key-value metadata, so no separate configuration files are needed to load and run the model.

The format is built to be self-contained, extensible and memory-mappable. Because metadata is stored as namespaced key-value pairs instead of a fixed list, new fields can be added without breaking older readers. Weights are usually quantized, from 2-bit up to 8-bit and including K-quants such as Q4_K_M, which lets sizeable models run on consumer CPUs and GPUs. Every file starts with the four-byte magic string GGUF, followed by a version number; the current version is 3.

Security & safety

RISK: LOW

GGUF is a data container for model weights and metadata, not an executable, so opening one does not run code by itself. The main practical risks are large file sizes and downloading models from untrusted sources; a malformed file could in theory exploit a bug in the loader, so use up-to-date inference tools and reputable model repositories.

Format details

in a nutshell
FULL NAMEGGML Universal Format Fileaka GGML Universal File, GGUF model
DEVELOPERGeorgi Gerganov and the ggml/llama.cpp communitysince August 2023
CATEGORYData Files
MIME TYPEapplication/octet-stream
TYPEBinary
STANDARDOpen · royalty-free
This extension is also used by…
  • Genome Graphical User Format - Rarely, .gguf has been used ad hoc by hobby projects for GUI layout data, unrelated to the machine-learning format described here.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
47475546
ASCII
GGUF
First 4 bytes are the ASCII string GGUF (0x47 0x47 0x55 0x46), followed by a 4-byte version, 8-byte tensor count and 8-byte metadata count.

Programs that open GGUF files

Windows6 apps
LM Studio Freemium Browse, download and chat with .gguf models through a desktop GUI, with per-model quantization choices.
Ollama Open-source Load a local .gguf file via a Modelfile and serve it for chat or API use with one command.
llama.cpp Open-source Run inference directly on a .gguf model with llama-cli or llama-server, the reference implementation of the format.
Jan Open-source Import a .gguf file and run it fully offline in a ChatGPT-style desktop app.
GPT4All Open-source Add a downloaded .gguf model to the local model folder and chat with it offline.
koboldcpp Open-source Load a .gguf model for text generation and roleplay with a self-contained executable.
macOS4 apps
LM Studio Freemium Download and run .gguf models with Apple Silicon acceleration through a desktop GUI.
Ollama Open-source Serve a local .gguf model via a Modelfile using Metal acceleration on Apple hardware.
llama.cpp Open-source Run .gguf models with llama-cli, built with Metal support for Apple Silicon.
Jan Open-source Import and run .gguf models offline in a native desktop client.
Linux4 apps
llama.cpp Open-source Build from source and run .gguf models with CUDA, ROCm or CPU backends via llama-cli and llama-server.
Ollama Open-source Register a local .gguf file with a Modelfile and serve it over the Ollama API.
LM Studio Freemium Run .gguf models with a desktop GUI and GPU offload on supported hardware.
text-generation-webui Open-source Load .gguf models through the llama.cpp loader in a browser-based interface.
Web1 app
Hugging Face GGUF viewer Free Inspect a .gguf file's metadata, tensor list and quantization in the browser without downloading it.

Technical details

deep spec
EncodingBinary
Byte orderLittle-endian by default; big-endian supported since version 3
ContainerSingle-file container holding header, metadata key-value block, tensor info block and raw tensor data
CompressionNone as a container; weights are stored using GGUF quantization schemes (Q2 through Q8, K-quants such as Q4_K_M, IQ variants, plus F16/BF16/F32)
Typical sizeRoughly 0.5 GB to over 100 GB depending on parameter count and quantization level
StructureHeader (magic, version, tensor count, metadata count) then namespaced key-value metadata, then per-tensor info (name, dimensions, type, offset), then aligned raw tensor data. Default alignment is 32 bytes and must be a multiple of 8.
IntegrityNo built-in checksum; the metadata block is self-describing and validated at load time
PlatformsWindows, macOS, Linux
NotesA GGUF file is self-contained: it bundles the model weights, tokenizer and all hyperparameters as typed metadata, so no separate config files are needed. Metadata keys use lower_snake_case with period-separated namespaces and keys can be up to 65,535 bytes. Over 40 quantization types are supported. Large models can be sharded across multiple .gguf files with llama-gguf-split.
ReleasedAugust 2023
Latest versionVersion 3
Open standardYes · royalty-free
Specificationgithub.com

GGUF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with GGUF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about GGUF files.

Frequently asked questions

How do I open a GGUF file?
Use a local LLM runner such as LM Studio, Ollama, Jan or GPT4All, or load it directly with llama.cpp. These tools read the .gguf file and let you chat with the model. Double-clicking the file will not do anything useful on its own.
What program creates GGUF files?
They are produced by the llama.cpp conversion scripts, mainly convert_hf_to_gguf.py, which turns a Hugging Face model into a .gguf, optionally followed by llama-quantize to shrink it to a smaller quantization such as Q4_K_M.
What does the Q4_K_M in a GGUF filename mean?
It is the quantization type. Q4 means roughly 4-bit weights, K refers to the block-based K-quant method, and M is the medium size/quality variant. Lower numbers give smaller files and lower quality; F16 or F32 are unquantized.
Can I convert a GGUF file back to the original model?
Partly. You can dequantize it to .safetensors or PyTorch weights with community scripts, but because most GGUF files are quantized, the conversion is lossy and does not restore the exact original weights.
Why is my GGUF file so large?
A .gguf holds every model weight in one file. File size scales with the number of parameters and the quantization level, so a large model at higher precision can easily exceed tens of gigabytes.
Are GGUF files safe to download?
The format itself does not contain executable code, so it is safer than pickle-based formats. Still, download models only from trusted sources and keep your inference software updated in case of loader bugs.

References

1GGUF - Wikipediaen.wikipedia.org
2Official GGUF specification (ggml docs)github.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z