Memory Allocator Visualizer

Visualize dynamic memory allocation (malloc/free/realloc) on a simulated heap. Watch how different allocation strategies affect fragmentation.

Click anywhere to start
Memory Allocator
Strategy:
Heap:
Preset:
Heap Memory
External Frag: 0%
Internal Frag: 0%
Utilization: 0%
0
Allocated
1024 B
Free
0
Blocks
1
Fragments
0
Ops
Allocated Blocks
Operations
malloc(size)
free(ptr) — select block then:
realloc(ptr, size)
Block Size Constraints
Min size (B)
Max size (B)
Action Log