← All Tools

Rate Limiter Algorithm Simulator

Send the same request timeline through five classic rate limiters — token bucket, leaky bucket, fixed window, sliding window log, sliding window counter — and watch which requests each one allows or rejects, side by side. Great for picking the right algorithm for an API or DDoS filter.

Algorithms

Token bucketRefills at r/s, burst = capacity
Leaky bucket (queue)Constant output rate, buffered burst
Fixed windowCounter resets every window
Sliding window logExact, keeps every timestamp
Sliding window counterPrev + current weighted average

Parameters

Request timeline

One timestamp per line, in seconds since the start. Or use a preset.

Duration (seconds)
0 requests total

Result

allowed rejected
AlgorithmAllowedRejectedReject %Notes

How each algorithm works