Am I Online
Check whether you are connected to the internet, live.
How to use this tool
- Open this page — it runs instantly in your browser, no signup or install.
- Allow any permission prompt if asked; everything stays on your device.
- Use the on-screen controls — results update live.
Check whether you are connected to the internet, live.
How it works
This widget checks your internet connectivity status using the browser's navigator.onLine property combined with live event listeners for the online and offline events. The status updates automatically the moment your connection is lost or restored — you do not need to refresh the page.
The browser fires an offline event when the device loses its network interface, and an online event when it reconnects. The tool listens to these events and updates the indicator in real time. A green status means the browser believes it has a network connection; a red status means no network interface is detected.
Useful for quickly confirming connectivity before submitting a form, diagnosing intermittent drops, or testing offline-capable web apps during development.
Worked example
Verify connection is restored after a network outage
- Open the tool before or during a connectivity issue.
- Observe the red 'Offline' indicator when disconnected.
- Reconnect your Wi-Fi or ethernet cable.
- Watch the indicator switch to green 'Online' without refreshing.
The status updates to 'Online' within seconds of the network being restored, confirming the reconnection was successful.
Common mistakes to avoid
- Assuming 'Online' means all internet services are reachable — it only confirms a network interface is present.
- Refreshing the page to check status — the indicator updates automatically without any user action.
- Using this as the sole diagnostic tool for internet problems — combine it with a ping test or loading a known website to confirm full connectivity.
Key terms
- navigator.onLine
- A browser JavaScript property that returns true when the browser has a network interface and false when it does not.
- offline event
- A browser event that fires when the network connection is lost, allowing web pages to respond in real time.
- online event
- A browser event that fires when network connectivity is restored after an offline period.
Frequently asked questions
- Can I be 'online' but still unable to reach a specific website?
- Yes. navigator.onLine only detects whether a network interface is active, not whether the internet or a specific server is reachable. A working local network but a down ISP would still show as 'online'.
- Does this tool ping a server to check connectivity?
- No. It relies solely on browser API events. This means it is instant but cannot detect higher-level connectivity issues like DNS failures or blocked servers.
- Why did the tool show 'online' during my outage?
- If your device was connected to a router (even one without internet access), navigator.onLine returns true because the local network interface is active.