
Google Maps is the default way to put a map on a website, but it is no longer the obvious one. Since March 2025 the free allowance is 10,000 map loads a month, the embed usually has to wait behind a cookie banner in the EU and UK, and you need a Google Cloud billing account before anything shows. If all you want is a map of where you are, there are simpler options.
This guide walks through four of them, from paste-and-go to fully self-hosted, so you can pick the one that fits your site.
Most sites need a map that loads quickly, shows one or a few locations with a marker, looks tidy next to the rest of the page, and doesn't cost anything until the site is busy. Few need Street View, live traffic or turn-by-turn directions. If you do, Google is still the right tool. If you don't, read on.
On openstreetmap.org, find your location, click Share, tick Include marker and copy the HTML. It is an <iframe> you can paste anywhere.
A tile service hosts the OpenStreetMap data for you and serves it fast from a CDN. With ExpressMaps you create a free account, make an API key, and paste this where you want the map:
<link href="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js"></script>
<div id="map" style="width: 100%; height: 400px;"></div>
<script>
var map = new maplibregl.Map({
container: 'map',
style: 'https://tiles.expressmaps.com/styles/standard.json?key=YOUR_API_KEY',
center: [-0.1276, 51.5072], // longitude, latitude
zoom: 13
});
map.addControl(new maplibregl.NavigationControl());
new maplibregl.Marker().setLngLat([-0.1276, 51.5072]).addTo(map);
</script>
The embed generator writes this for you if you'd rather not touch the coordinates by hand.
On WordPress you can skip the code. Install the ExpressMaps plugin from Plugins → Add New, paste your API key in its settings, and add the ExpressMaps Map block to any page, or use the [expressmaps] shortcode in the classic editor and page builders.
For Webflow, Squarespace, Wix and Shopify, paste the snippet from option 2 into the builder's custom code or embed element.
If you'd rather depend on nobody, you can download OpenStreetMap data as a single file (for example a Protomaps PMTiles extract), put it on your own storage, and draw it with the same open-source MapLibre library.
Find the Google <iframe> in your page, delete it, and paste the snippet from option 2 in the same place with your own coordinates. Note that MapLibre wants longitude first, then latitude, the opposite of Google. That's the only change most sites need. If you use the Google Maps JavaScript API instead of the embed, our Google Maps alternative page covers the switch and what it costs.
Start free with 100,000 map loads a month, or see the live demo first.