---
title: "<NuxtPicture>"
description: "Nuxt provides a <NuxtPicture> component to handle automatic image optimization."
canonical_url: "https://nuxt.com/docs/4.x/api/components/nuxt-picture"
---
# <NuxtPicture>

> Nuxt provides a <NuxtPicture> component to handle automatic image optimization.

`<NuxtPicture>` is a drop-in replacement for the native `<picture>` tag.

Usage of `<NuxtPicture>` is almost identical to [`<NuxtImg>`](https://nuxt.com/docs/4.x/api/components/nuxt-img) but it also allows serving modern formats like `webp` when possible.

Learn more about the [`<picture>` tag on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/picture).

## Setup

In order to use `<NuxtPicture>` you should install and enable the Nuxt Image module:

```bash [Terminal]
npx nuxt module add image
```

<read-more target="_blank" to="https://image.nuxt.com/usage/nuxt-picture">

Read more about the `<NuxtPicture>` component.

</read-more>

---

- [Source](https://github.com/nuxt/image/blob/main/src/runtime/components/NuxtPicture.vue)


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
