Blog
Mapbox alternatives: what to switch to and what it costs
Mapbox bundles a map library, map tiles, styles and search. The alternatives for each part, their published prices, and how to move off Mapbox GL JS.
Most people searching for a Mapbox alternative are reacting to one of two things: a bill that grew with their traffic, or the license that came with Mapbox GL JS version 2. Both are fair reasons to look. The trouble is that “Mapbox” is not one product. A map on a web page built with Mapbox uses a drawing library, map data cut into tiles, a style that decides how the data looks, and usually a search or routing service on the side. Each of those can be replaced on its own, and the right alternative depends on which one is actually causing the problem.
This guide splits Mapbox into those parts, names the open-source and hosted options for each, compares the prices the vendors publish, works through the cost of one invented app under four setups, and gives the steps for moving a map from Mapbox GL JS to MapLibre GL JS. Prices are quoted from each vendor’s own pricing page as it read on December 2, 2026. They change, so check the page before you commit.
The worked example is invented: a food-truck finder for one metro area, a web app where people open a map to see which trucks are parked nearby and type an address to search around it. It sells listings to truck owners, so it counts as commercial use. Nothing about it is real: the app, its visitors and every figure for it exist only to show the arithmetic.
What Mapbox actually gives you
When a developer adds a Mapbox map to a page, four separate things arrive under one account and one access token.
| Part | What it does | The Mapbox product |
|---|---|---|
| Renderer | The JavaScript library that draws the map in the browser and handles panning, zooming, markers and layers | Mapbox GL JS |
| Map data and tiles | Roads, buildings, water, labels and so on, cut into square tiles the renderer downloads as the user moves around | Mapbox's vector and raster tiles |
| Style | A file that says which data to show at each zoom level and in what colors, fonts and line widths | Mapbox's own styles, or one you design in Mapbox Studio |
| Services | Turning an address into a point (geocoding), finding a route between points, and similar requests | The Geocoding, Directions and other APIs |
Mapbox bills the first two together. Its pricing page says a map load “is counted every time Mapbox GL JS initializes on a webpage or in a web app”, and that a map load includes unlimited requests to its vector and raster tile APIs. The services are billed separately, per request.
That bundling matters when you go looking for a replacement. Swapping the renderer alone does not remove the tile bill unless you also find tiles somewhere else, and changing tile provider usually means a new style too, because a style is written for the shape of one provider’s data.

Why teams move away from Mapbox
The license. Up to version 1.13, Mapbox GL JS was open source under the BSD 3-Clause license. The version 2.0.0 entry of its changelog opens its breaking changes with the line that the library “is no longer under the 3-Clause BSD license”. The current license file grants use under the Mapbox Terms of Service “for use only with the relevant Mapbox product(s)”, for developers “with a current active Mapbox account”, and says the license ends if the account is no longer in good standing. In practice, the license does not let version 2 and later be used with someone else’s tiles, and the app depends on keeping the account.
The bill. Each time the map starts up counts as a load. A busy page that shows a map to every visitor, whether or not they touch it, pays for every one of those loads above the free allowance.
What you are allowed to keep. Mapbox’s Geocoding API documentation separates temporary results, the default, from permanent ones. It says “Temporary results are not allowed to be cached.” If your app needs to store the coordinates of the addresses it looks up, as a finder that saves each truck’s spot would, you need the permanent option, which the same page says requires a credit card on file or an enterprise contract.
None of this makes Mapbox a bad choice. An app whose loads stay inside the free allowance pays nothing for its map. The point is to know which of these three is driving the search before picking a replacement.
The alternatives, part by part
Renderers: the library that draws the map
MapLibre GL JS is the closest replacement. Its README says it began as an open-source fork of Mapbox GL JS “before their switch to a non-OSS license in December 2020”. It is under the 3-Clause BSD license, needs no access token, and reads the same kind of vector tiles and style files. MapLibre also maintains MapLibre Native for mobile and desktop apps and Martin, a tile server. A team on Mapbox GL JS gets the smallest code change by moving here.
Leaflet describes itself as an open-source library for interactive maps at “just about 40 KB of JS”. The example on its home page loads raster tiles, which are pictures of the map, and adds a marker with a pop-up. That is the kind of map it is quickest to build with: a base map plus your own points.
OpenLayers is under the 2-clause BSD License and is the heavier, more complete option. Its home page lists tiles from any XYZ source, vector formats including GeoJSON, KML and Mapbox vector tiles, and OGC map services. It suits teams whose data comes from government or other OGC map servers.
None of the three supplies map data. Each one needs tiles from somewhere, which is the next decision.
Map data and tiles: where the map itself comes from
Hosted tile services sell the same thing Mapbox does: tiles and ready-made styles behind an API key. MapTiler Cloud bills per map session, which it counts as “a webpage or mobile-app load which contains a map initialization”. The ArcGIS Location Platform from Esri offers basemaps billed either per tile or per basemap session, plus geocoding and routing. Google Maps Platform is in this group too, with a catch covered further down.
The OpenStreetMap tile server is not a free production backend. Many open maps use OpenStreetMap data, and the OSM Foundation runs a public tile server at tile.openstreetmap.org. Its tile usage policy says “heavy or inappropriate use harms others’ ability to edit and view the map”, that “there is no SLA or guarantee”, and that commercial services should expect that “access may be withdrawn at any point”. It also bans prefetching areas and offline “save area” features. It is fine for a prototype. A commercial app should use a provider or its own tiles.
Your own tiles. You can cut OpenStreetMap data into tiles yourself and serve them from your own storage. PMTiles puts a whole tile set in a “single-file archive format” that “can be hosted on a storage platform like S3”, and the map reads the tiles it needs from that file with HTTP range requests. There is no per-load license fee. You pay your host for storage and bandwidth, and someone on your side refreshes the file when you want newer map data. Martin, from the MapLibre project, serves tiles from PostGIS databases or from PMTiles and MBTiles files if you would rather run a tile server.
Whichever source you use, OpenStreetMap data is under the Open Database License and has to be credited on the map. The OSM Foundation’s attribution guidelines ask for the text “OpenStreetMap” linked to its copyright page, in any corner of the map, with the lower right as the usual spot.
Styles: how the map looks
A style made in Mapbox Studio refers to Mapbox’s own tile sources with mapbox:// addresses, so it will not load against another provider’s tiles as it stands. Hosted providers ship their own ready-made styles. With your own tiles you host a style file next to them and edit it to match the data, which is a design task as much as a development one. Budget time for it if the map’s look is part of the brand.
Services: search and routing
Geocoding and routing are sold per request by most map providers, and they come with terms about where the results may be shown and how long they may be kept. Read those terms before mixing providers. The next section has the clearest example.
Mapbox vs Google Maps
Google Maps Platform is the alternative most people compare first. Its strengths are its place data and routing, and since March 1, 2025 its billing works differently from before: Google’s own notice says it “replaced the USD $200 monthly recurring credit with a free monthly usage threshold for each Core Services SKU”.
The difference that catches teams out is in the terms. Section 3.2.3(e) of the Google Maps Platform Terms of Service, headed “No Use With Non-Google Maps”, says the customer “will not use the Google Maps Core Services with or near a non-Google Map”. The service-specific terms repeat it for the Geocoding, Directions and other APIs. So you cannot keep a MapLibre map and add Google’s geocoding to it. If your app shows a map next to Google’s results, that map has to be Google’s. Google publishes separate terms for customers with a billing address in the European Economic Area, so a team billed there should read that version instead.
Here are the published rates for a web map and for geocoding, from each pricing page as it read on December 2, 2026.
| Provider | Web map: free each month | Web map: first paid rate | Geocoding: free, then |
|---|---|---|---|
| Mapbox | 50,000 map loads | $5.00 per 1,000 loads (50,001 to 100,000) | 100,000 temporary requests, then $0.75 per 1,000 |
| Google Maps Platform | 10,000 Dynamic Maps events | $7.00 per 1,000 (up to 100,000) | 10,000 events, then $5.00 per 1,000 |
| MapTiler Cloud | 5,000 sessions on the Free plan, which it describes as suitable for testing, prototypes, personal or non-commercial use | Flex plan $30 a month with 25,000 sessions, then $2.50 per 1,000 | Counted as search sessions: 3,000 on Flex, then $2.50 per 1,000 |
| ArcGIS Location Platform | 2 million basemap tiles, or 1,000 basemap sessions | $0.15 per 1,000 tiles, or $4 per 1,000 sessions | 20,000 geocodes (not stored), then $0.50 per 1,000 |
| MapLibre or Leaflet with your own tiles | No per-load fee | Your hosting bill for storage and bandwidth | Not included: add a geocoding service |
Google counts a Dynamic Maps event per map load, as its usage and billing page puts it: “map loads trigger the Dynamic Maps SKU”. The units in the table are close to one another but not identical, which is why the next section works through one app instead of comparing rates in the abstract.
So is Mapbox as good as Google Maps? For drawing a map with your own markers, Mapbox’s free allowance is five times Google’s and its first paid rate is lower. For looking up businesses and places by name, Google’s place data is what you are paying for, and its terms keep that data off anyone else’s map.
A worked example: one month of the food-truck finder
The invented finder gets 90,000 map loads a month. Every visit that opens the map counts once, and the map is the home page. Visitors also type 20,000 addresses a month to search around, each one geocoded once.
| Setup | Map | Geocoding | Month |
|---|---|---|---|
| Mapbox | 40,000 loads over the free 50,000, at $5.00 per 1,000: $200 | Inside the free 100,000: $0 | $200 |
| Google Maps Platform | 80,000 over the free 10,000, at $7.00 per 1,000: $560 | 10,000 over the free 10,000, at $5.00 per 1,000: $50 | $610 |
| MapTiler Cloud, Flex | $30 plan, plus 65,000 sessions over the included 25,000 at $2.50 per 1,000 ($162.50): $192.50 | Depends on how many search sessions the 20,000 lookups make; not costed here | $192.50 plus search |
| MapLibre and a PMTiles file on the app's own storage | No per-load fee; the storage and bandwidth bill | A separate geocoding service, which cannot be Google's (section 3.2.3(e)) | Hosting plus geocoding |
The table leaves out three things.
First, the finder stores each truck’s parking spot. On Mapbox those coordinates cannot come from temporary geocoding, so the real Mapbox line needs the permanent option on top of the $200; the pricing page listed it at $5.00 per 1,000 requests with no free allowance. The other providers have storage rules of their own. ArcGIS lists stored geocodes at $4 per 1,000, and Google’s service terms limit how long coordinates from its Geocoding API may be cached. Read the storage terms of whichever one you pick.
Second, the cheapest change is often not a new provider. Because the map is the home page, every visit costs a load. If the map only started when someone pressed “Show trucks near me”, and a third of visitors did, the finder would make about 30,000 loads a month and sit inside Mapbox’s free 50,000. The same change cuts the Google line to $140 for the map.
Third, the self-hosted line has no license fee but does have a cost that is not in the table: someone has to build the tile file, host a style, refresh the data and keep it running. For a small team that time can cost more than the Mapbox bill it replaces.
Which is better, Mapbox or MapLibre?
They draw maps the same way, and for most apps the visible result is the same. The difference is in what you are tied to.
Mapbox GL JS from version 2 onward works only with a Mapbox account and Mapbox’s services, and in return you get Mapbox’s tiles, styles, Studio editor and support in one place. MapLibre GL JS is open source and works with any tile provider whose terms allow it, or with your own tiles. You give up nothing in licensing. What you take on is choosing and paying for the tiles and styles yourself.
A team that only objects to the library license can move the code to MapLibre and take its tiles and styles from another hosted provider. A team whose problem is the bill needs to change where the tiles come from as well, or to change when the map loads.
How to move a map from Mapbox GL JS to MapLibre GL JS
MapLibre’s migration guide sets out the package, namespace and class changes. The whole job, in order:
- Swap the package. Uninstall
mapbox-gland installmaplibre-gl. If the map loads from a CDN, replace the script and CSS tags; the guide notes that version 6 ships as ES modules only, so the script tag becomes a module import. Pin the version. - Rename the namespace. Every
mapboxglbecomesmaplibreglin your scripts. - Rename the CSS classes. Control classes change prefix, so
mapboxgl-ctrlbecomesmaplibregl-ctrl. Check any stylesheet that targets them. - Remove the access token. MapLibre needs none. Your new tile source may have its own key.
- Replace every
mapbox://address. Point the style and its sources at the new tiles, whether that is a hosted provider or your own PMTiles file. This is where most of the work is. - Check what is missing. Run the type checker or watch the browser console. A method that no longer exists may have a different name in MapLibre, or no equivalent yet.
Then the parts that are not code. Add the attribution your new data needs. Look at what your app has saved from the old provider’s services, since stored results fall under that provider’s terms. Switch the old account off only once the new map has run in production for a full billing cycle.
How to choose
Answer these in order, and stop at the first one that settles it.
- Is the free allowance enough? If your loads sit under 50,000 a month, or can be brought under it by starting the map on demand, Mapbox may cost nothing, and the license only matters if you object to the account dependency.
- Do you need Google’s places and search? If the app’s value is finding businesses by name, Google Maps Platform is the realistic choice, and its terms mean any map shown with those results comes from Google.
- Is the license the problem, not the price? Move the code to MapLibre GL JS and keep a hosted tile provider whose terms and rates suit you.
- Is the price the problem at high traffic? Compare hosted providers on your own load numbers, then price self-hosted tiles with the staff time included.
- Do you need GIS work behind the map? Editing networks, running spatial analysis or keeping the official record of assets is a GIS platform’s job, not a web map’s. Our guide to telecom GIS shows one industry’s version of that.
At Devrisen, our GIS work is built in ArcGIS. The comparison above is drawn from each vendor’s public pages. If the map is one part of a larger application, our web application development page explains how we scope a build. Start with how to build a web app for the choices that come before any map.
Mapbox alternatives: common questions
Is there a free alternative to Mapbox?
The libraries are free: MapLibre GL JS, Leaflet and OpenLayers are all open source with no per-load fee. The map data is the part that costs. You can pay a hosted provider, serve your own tiles and pay for hosting, or use a provider’s free plan within its terms (MapTiler’s Free plan, for example, is described as suitable for testing, prototypes, personal or non-commercial use). The OpenStreetMap Foundation’s own tile server is not meant to carry a commercial app.
Which free mapping API is the best?
For a web map, MapLibre GL JS with a hosted or self-hosted vector tile source is the nearest free match to Mapbox. Leaflet is the easiest to start with for a map of markers. For geocoding there is no fully free service for a commercial app at volume, so compare the free monthly allowances: on December 2, 2026, Mapbox listed 100,000 temporary requests, the ArcGIS Location Platform 20,000 geocodes and Google 10,000.
What is the best Google Maps API alternative?
It depends on what you use from Google. For a map with your own markers, Mapbox, MapTiler or MapLibre with your own tiles all work, and their published per-load rates were lower than Google’s on December 2, 2026. For place search, coverage of businesses differs from one provider to the next, so test them on the searches your users actually make before you switch.
Can I use Mapbox tiles with Leaflet or MapLibre?
With Leaflet, yes. Mapbox’s pricing page lists a Static Tiles API, billed per tile request rather than per map load, and describes it as serving raster tiles for Leaflet and similar maps. The same page lists a Vector Tiles API billed per tile request; check Mapbox’s terms before pairing it with MapLibre. The Mapbox GL JS library itself, from version 2, may only be used with Mapbox’s products.
How long does a switch take?
That depends on how much of the app talks to the map and how custom the style is. The code steps above are mechanical. Rebuilding a custom style for new tiles and checking every screen that shows a map is the part to estimate with care.
If you are planning a web application with a map in it and want a second opinion on the choice, get in touch. Our reply time is one business day.
The full service behind this post: Custom Web Application Development Company.
Ready to scope your project?
Send us two sentences about what you need. We reply within one business day with the next step and any questions we need answered first.