Shows north and the direction your phone is facing, using its built-in sensors. iPhone asks for permission first. Keep away from metal and magnets for a clean reading.
Magnetic north (compass needle)
Magnetic bearing
True bearing
Opposite direction
8-point
Sensor accuracy
—
Not reported by this device
Level check
—
TIP
Tap Start compass to read north from your phone's sensors. On iPhone, a motion and orientation prompt appears after you tap. Choose Allow.
Where readings go wrong
Metal, magnets, speakers, appliances, steel-framed buildings, and the inside of a car can distort the magnetic field and pull north off. Take off any magnetic phone case or mount. When a wrong heading could cause real trouble, carry a dedicated compass too.
North reference
Declination is set to 0°, so true and magnetic readings match. Enter the value for your location.
Declination depends on where you are and changes slowly over time. Look up your local value with NOAA's magnetic declination calculator, then enter it here. Enter west values as negative numbers.
Saved headings
Save your current heading to put a target marker on the dial and see how many degrees to turn. Useful for lining up a tent, a camera, or a piece of furniture. Saved headings are cleared when you close or reload the page.
Use Your Phone as a Compass Without Installing an App
Your phone has a magnetometer that measures Earth's magnetic field. This page reads your phone's orientation in the browser and draws it as a compass dial, showing where north is and which way the top edge of your phone is facing. There is nothing to install and no account to create. Open the page and tap Start compass.
It is handy for checking a campsite or tent door, working out which way a window or yard faces, or matching a map to the landscape. Switch from magnetic to true north when you are working from a map, and save a heading so you can line something up again later.
On iPhone, the browser requires your permission before a page can read motion and orientation data. Computers usually have no magnetometer, so there the page falls back to Enter angle, where you type a number of degrees and see the matching direction.
Handy in situations like these
Camping and hiking: tent door and trail direction
Check which way a tent door or hammock line faces before you set up, or confirm the direction you are walking. Save the heading and use the target marker to set up the same way again.
Emergency and outage preparedness
If you lose your usual map view, knowing where north is helps you match a paper map to your surroundings. Try the compass once at home so the permission prompt and controls are familiar.
Which way does it face? Windows, yards, and balconies
Point the top of your phone straight out of a window or along a wall to read its facing direction. Handy when you are comparing apartments, planning a garden, or deciding where furniture should go.
Camera, antenna, and equipment alignment
When you need to aim something at a known bearing, such as a camera, a dish, or a tripod, save the target heading and use the turn-left or turn-right readout to line it up.
How to Get a Compass Reading on Your Phone
- Tap Start compass. On iPhone, a permission prompt appears. Choose Allow.
- Hold your phone flat with the screen facing up. The dial rotates and the red needle tip points to north.
- Read the number and direction name at the top. That is where the top edge of your phone is pointing. Use Lock heading to freeze the reading, or Save to name and store it.
Note: When you are working from a map, set North reference to True north and enter your local declination. To match the needle of a physical compass, use Magnetic north.
Accuracy Limits and Safety Notes
- Accuracy: Treat the reading as an estimate. Where a wrong heading could put you at risk, such as hiking, boating, or emergencies, carry a dedicated compass and a map.
- Interference: Metal, magnets, speakers, appliances, steel-framed buildings, and car interiors can shift north. Remove magnetic phone cases and mounts before you measure.
- iPhone permission: iOS 13 and later require you to allow motion and orientation access. If you tapped Don't Allow, fully quit Safari and reopen the page.
- Browsers: Safari on iPhone and Chrome on Android work best. Some in-app browsers don't pass sensor data to web pages.
- How to hold your phone: Keep it flat, screen up, in portrait orientation. Turning off screen auto-rotate can keep the reading steadier.
- Privacy: Sensor readings and saved headings stay in your browser. The tool doesn't upload them or ask for your location, and saved headings are cleared when you close or reload the page.
16-Point Compass Rose: Direction Names, Abbreviations, and Degrees
Bearings are measured clockwise from north, which is 0°. Use this table to see which direction a number of degrees falls in.
| Direction | Abbreviation | Center angle | Angle range |
|---|---|---|---|
| North | N | 0° | 348.75°–11.25° |
| North-northeast | NNE | 22.5° | 11.25°–33.75° |
| Northeast | NE | 45° | 33.75°–56.25° |
| East-northeast | ENE | 67.5° | 56.25°–78.75° |
| East | E | 90° | 78.75°–101.25° |
| East-southeast | ESE | 112.5° | 101.25°–123.75° |
| Southeast | SE | 135° | 123.75°–146.25° |
| South-southeast | SSE | 157.5° | 146.25°–168.75° |
| South | S | 180° | 168.75°–191.25° |
| South-southwest | SSW | 202.5° | 191.25°–213.75° |
| Southwest | SW | 225° | 213.75°–236.25° |
| West-southwest | WSW | 247.5° | 236.25°–258.75° |
| West | W | 270° | 258.75°–281.25° |
| West-northwest | WNW | 292.5° | 281.25°–303.75° |
| Northwest | NW | 315° | 303.75°–326.25° |
| North-northwest | NNW | 337.5° | 326.25°–348.75° |
How bearings are counted
North is 0°, east is 90°, south is 180°, and west is 270°. Each of the 16 points covers 22.5°. Each of the 8 main points (N, NE, E, SE, S, SW, W, NW) covers 45°.
- South-facing: On the 16-point scale, South covers 168.75° to 191.25°. Use true north if you are comparing with a map or plan.
- Opposite direction (back bearing): Add 180° to your bearing, and subtract 360° if the result is over 360°.
Magnetic Declination, Calibration, and iPhone Permission Explained
What the sensors measure, why iPhone asks for permission, how magnetic and true north differ, and how to get a steadier reading.
How a phone compass works in the browser
Phones have a magnetometer along with an accelerometer and gyroscope. The magnetometer senses Earth's magnetic field, and the motion sensors tell the phone how it is tilted. Browsers share the result as device orientation data. On iPhone, Safari provides a compass heading directly. On Android, this page calculates the heading from the orientation angles and corrects for tilt. It then smooths the result so the dial doesn't jump.
Why iPhone asks for motion and orientation access
On iOS 13 and later, a web page has to ask before it can read motion and orientation data, and the prompt appears after you tap Start compass. If you choose Don't Allow, the prompt may not return right away. Fully quit Safari, reopen the page, and tap the button again. Android browsers usually don't show a prompt.
True north vs. magnetic north: what declination does
A compass needle points to magnetic north. Maps are drawn with true north, the direction of the geographic North Pole. The angle between the two is the magnetic declination. It depends on your location and changes slowly over time, and it is labeled east or west. This tool treats east as positive: true bearing = magnetic bearing + declination. Look up your local value with NOAA's online magnetic declination calculator and enter it in the tool.
Calibrating with a figure-8 and avoiding interference
Earth's field is weak, so metal, magnets, speakers, motors, appliances, steel-framed buildings, and vehicles can overpower it. A magnetic case or mount affects the reading all the time. If accuracy drops, step outside away from metal and move your phone in a big figure-8, then hold it flat. On iPhone, the Sensor accuracy card shows the accuracy the phone reports.
Compass Not Working or Pointing the Wrong Way?
North is far off with a magnetic case, ring, or car mount attached
Magnets in a wireless-charging case, a ring holder, or a car mount push on the sensor all the time. The reading stays wrong no matter how often you recalibrate.
💡 See the solution▼
The reading jumps around or won't change inside a car or steel-framed building
Vehicle bodies, steel framing, elevators, and escalators distort the magnetic field. Appliances such as a refrigerator or TV near a window can do the same.
💡 See the solution▼
Tapped Don't Allow on iPhone and now nothing works
After you refuse, iPhone may not show the permission prompt again for that page. Tapping the button repeatedly keeps showing Permission denied.
💡 See the solution▼
Phone held upright or tilted, so you read the wrong direction
Holding the phone up in front of your face makes it easy to read the direction the back of the phone faces instead of the top edge. The more the phone tilts, the larger the error.
💡 See the solution▼
Map direction and compass direction don't match
A map is drawn to true north and a compass shows magnetic north. Unless your local declination is close to zero, the two readings differ, and the farther you travel on that heading, the further off course you end up.
💡 See the solution▼
Opened it on a laptop and it never shows a direction
Most desktop computers and laptops have no magnetometer, so the page never receives a heading. It can look like the tool is broken when the hardware is simply missing.
💡 See the solution▼
Phone Compass Questions: Accuracy, Permission, and True North
Q.Can I use my phone as a compass without an app?
A. Yes. Phones have a magnetometer that measures Earth's magnetic field, and your browser can read the phone's orientation from it. Open this page, tap Start compass, and the dial shows north and the direction the top edge of your phone is facing. Safari on iPhone and Chrome on Android are the best bets. Some in-app browsers don't pass sensor data to web pages, so if the dial doesn't move, open the page in Safari or Chrome.
Q.Why is the compass not working on my iPhone, and why didn't I get a permission prompt?
A. On iOS 13 and later, a web page has to ask for motion and orientation access before it can read the sensors. The prompt appears when you tap Start compass; choose Allow. If you tapped Don't Allow earlier, the prompt may not appear again. Fully quit Safari, reopen this page, and tap the button again. If the page is open inside another app, open it in Safari instead.
Q.Does the compass work on a laptop or desktop computer?
A. Most desktop and laptop computers have no magnetometer, so the browser has no heading to give this page. Open it on your phone instead. On a computer you can still use Enter angle: type or drag to a number from 0 to 359 and the dial shows the matching direction.
Q.Why is my phone compass pointing the wrong way?
A. The magnetometer reads Earth's magnetic field, which is weak and easy to distort. Metal objects, magnets, speakers, appliances, steel-framed buildings, and the inside of a car can all throw it off, and so can a magnetic phone case or mount. Move outdoors away from metal, hold the phone flat, and move it in a big figure-8. If the reading still looks wrong, compare it with a dedicated compass.
Q.What is the difference between true north and magnetic north?
A. Magnetic north is where a compass needle points. True north is the direction toward the geographic North Pole, which is the north that maps use. The angle between them is the magnetic declination. It depends on where you are and changes slowly over time. This tool starts on magnetic north. To get true north, select True north and enter your local declination, using positive numbers for east and negative numbers for west. NOAA publishes an online magnetic declination calculator you can use to look it up.
Q.How do I enter the declination for my location?
A. Look up the declination for your location and date, then select True north and enter it in the declination box or move the slider. Use a positive number if the declination is east and a negative number if it is west. For example, 10° W is entered as -10. The tool adds the value to the magnetic reading to get the true reading, so a wrong sign makes the error twice as large instead of removing it.
Q.How can I check which way a window, yard, or tent door faces?
A. Hold your phone flat with the top edge pointing straight out of the window, the door, or along the edge you want to check. Read the heading on the dial, or tap Lock heading to freeze the number. If you are comparing with a map or a house plan, switch to True north and set your declination first. You can also save a heading with a name and use the target marker later to line something up again.
Q.Does it still work if I tilt my phone?
A. The tool adjusts for tilt on Android, and iPhone provides its own compass heading, but the reading is most stable when the phone is flat with the screen facing up. The Level check card shows whether your phone is close to level. Use the phone in portrait orientation, and consider turning off screen auto-rotate while you measure.
Q.Does this compass send my sensor data or location anywhere?
A. No. The compass code runs in your browser. It doesn't upload your sensor readings or your saved headings, and it doesn't ask for your location. Saved headings are kept in memory only and are cleared when you close or reload the page.
Your feedback
makes this tool better.
Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.