Free Website Hit Counter
Track the number of visitors to your website with a simple and lightweight hit counter.
Related Tools
What Is a Website Hit Counter?
A website hit counter is a small piece of code you embed in your page that increments a number every time someone loads it. The count is stored externally and displayed on your site in real time. It’s one of the simplest ways to show visitor activity — no analytics dashboard, no login, just a number that goes up.
This tool generates the embed code for you. Pick a counter style, set a starting number, choose your colors, and copy the HTML snippet. Paste it into your page wherever you want the counter to appear.
Counter Styles Available
Simple — Plain text count, minimal and clean. Works in any layout without clashing with your design.
Boxed — Count displayed inside a bordered box with a background color. Good for sidebars or footers where you want the counter to stand out slightly.
Retro — Styled to look like a classic digital display. Popular for personal sites and portfolio pages that want a nostalgic feel.
Odometer — Animated rolling digits, like a mechanical counter. Visually satisfying and draws attention on landing pages.
How to Add the Counter to Your Website
- Enter your website URL in the field above
- Set your starting count — useful if you’re migrating from another counter and want to carry over your existing number
- Choose a style and customize colors
- Click Generate Counter Code
- Copy the embed snippet and paste it into your site’s HTML where you want the counter to show
For WordPress: Paste the code into a Custom HTML widget in your sidebar or footer, or use a plugin like WPCode to insert it into specific page templates.
For static HTML sites: Paste directly into the <body> of your HTML file at the position you want the counter.
For Blogger: Use the HTML/JavaScript gadget widget in your layout editor.
What Powers the Counter
This tool uses counterapi.dev — a free, lightweight API that stores and serves hit counts. Each unique namespace (your website URL) gets its own counter. Every page load with your embed code makes a request to the API, which increments the count and returns the updated value to display.
The counter increments on every page load, including repeat visits from the same user. It measures total hits, not unique visitors. For unique visitor tracking and detailed analytics, Google Analytics or a similar platform is more appropriate. The hit counter is best for displaying a general visitor tally publicly on your site.
Hit Counter vs Google Analytics
These tools serve different purposes and work well alongside each other. A hit counter shows a visible number on your page — it’s a public-facing display of traffic. Google Analytics tracks detailed behavior: which pages users visit, how long they stay, where they came from, and what device they use.
If you want to understand your audience deeply, use analytics. If you want a simple badge on your site showing total visits — for social proof, engagement, or nostalgia — a hit counter is the right tool.
