> For the complete documentation index, see [llms.txt](https://docs.mapbox.com/help/ja/llms.txt)

# sprite

A **sprite** is a single image that contains all the [icons](https://docs.mapbox.com/help/ja/glossary/icon/) included in a [style](https://docs.mapbox.com/help/ja/glossary/style/). By combining a lot of small images into a single image (the sprite), you can reduce the number of requests needed to fetch all the images, which improves performance and makes your map load more quickly.

When you upload [SVG icons](https://docs.mapbox.com/help/ja/glossary/svg/) to [Mapbox Studio](https://docs.mapbox.com/studio-manual/), it will be added to your style's sprite automatically. Similarly, all Mapbox template styles come with their own sprites, filled with icons that you can use with the given style.

A sprite combines many icons into a single image:

![streets sprite example](https://docs.mapbox.com/help/ja/assets/ideal-img/sprite.7635605.480.png)

Every sprite has a complimentary JSON file that defines each icon in the sprite, including the icon's size and position within the sprite:

```json
"airport-15": {
  "width": 42,
  "height": 42,
  "x": 76,
  "y": 300,
  "pixelRatio": 2,
  "visible": true
}
```

This means that you can reference a specific icon in a sprite by name, such as `airport-15`, and the map renderer will reference the JSON file to get data about the icon, then only show that specific icon within the larger sprite.

You can retrieve a sprite as a JSON document or a PNG file using the [Mapbox Styles API](https://docs.mapbox.com/api/maps/styles/) endpoint, but we strongly recommend that you not build in a way that relies on any given icon or icon name within the sprite, since the images in a style's sprite can change depending on which [style components](https://docs.mapbox.com/help/ja/glossary/style-component/) are active.

> **Related content (video): [How to view all images in a sprite](null)**
> 
> Learn how to retrieve a sprite as a JSON document or a PNG file using the Mapbox Styles API.

**Related resources:**

-   [Mapbox Style Specification: Sprites](https://docs.mapbox.com/style-spec/reference/sprite/)
-   [Update sprites in Mapbox Studio](https://docs.mapbox.com/studio-manual/reference/styles/#images-toolbar)
-   [Mapbox Styles API sprites documentation](https://docs.mapbox.com/api/maps/#sprites)
-   [Sprite restrictions and limits](https://docs.mapbox.com/api/maps/#styles-api-sprites-restrictions-and-limits)
-   Download [generic marker images](https://docs.mapbox.com/help/ja/help/ja/assets/files/marker-icons-30f24c9775e37c2be5027d990c65cdb9.zip)