Web Share
Opens the phone's native share sheet with text, a link or files.
In one line
Can open your phone's share sheet with a link, text or files, only after a tap
Opens the phone's native share sheet with text, a link or files.
The person picks the target app. The site does not learn which one.
What it can and can't do
What the user does: You tap a Share button on the page
It can
- Open the share sheet with text, a link or files
- Let you pick the app to send to
- Share one item at a time
It cannot
- Open the share sheet without a tap
- See which app you picked
- Share anything you did not offer
- Work in Firefox on most computers yet
How it differs between platforms: Chrome, Edge, Safari and phone browsers support it. Firefox support is limited.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 128 | 2024-08-20 | None |
| Edge | Supported | 93 | 2021-09-02 | None |
| Firefox | Behind a flag | 71 | Not listed | Behind flag. |
| Safari | Supported | 12.1 | 2019-03-25 | None |
| Safari on iPhone | Supported | 12.2 | 2019-03-25 | None |
| Chrome on Android | Supported | 61 | 2017-09-05 | None |
| Samsung Internet | Supported | 8.0 | 2018-07-18 | None |
How a site asks for it
| API | navigator.share({title,text,url,files}), navigator.canShare() |
| Permissions policy | web-share |
| Browser compat keys | api.Navigator.share |
| How access is granted | gesture |
| What the user sees | OS share sheet |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | Yes |
| How long it lasts | Per origin |
| How to take it back | Site settings |
| Inside an iframe | Same as top level; cross-origin iframes need a permissions policy where listed |
Typical flow
- Call the API
- Browser applies its access rules
- Page receives the result
Data you get
What comes back: Opens the phone's native share sheet with text, a link or files.
Shape: object
How often: on demand
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
files | list | bytes | platform limit; images, video, audio, pdf, text | Not listed |
Technical limits
- Needs user gesture
- Firefox only behind a flag
- Cannot read the chosen target
The story
What it is
A page can open your phone's normal share sheet with a link, text or file.
For you
You tap a Share button, and your device's own share menu appears. You pick an app or a person. Nothing is shared until you choose.
For makers
Makers skip building buttons for each network, which saves work and clutters less. Share events bring new visitors. It must start from a tap, so it cannot fire by itself.
Where you see it
| Type | Example | Apps |
|---|---|---|
| news | A news article has one Share button that opens the share sheet for any chat or social app. | BBC News |
| games | A browser game shares your high score with a friend through your messages app. | None named |
| shopping | A store shares a product link with a friend for a gift idea. | Etsy |
| music | A music site shares a track to your story or chat. | None named |
| travel | A travel site shares a trip plan with a travel partner. | None named |
| creative | A web photo tool shares an edited picture through the share sheet. | None named |
| social | A social site shares a post link to another app. | |
| productivity | A document site shares a view link with a coworker in one tap. | Google Docs |
Risks
- Can leak private links
- Easy to share by mistake
What the platform says
- web.dev: Web Share API. Lets a site hand off a link, text or file to the share sheet, so you can send it with any app on your device.
Good uses and abuse
Legitimate uses
- Share buttons
Known abuse
- None notable
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 1 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2016, Chrome 61: Android share
- 2018, Safari 12.1: Safari
- 2024-08, Chrome 128: Desktop Chrome
Sources
How well checked: Checked against real behavior.