Rewriter API
Rewrites text in a different tone or length on the device.
In one line
Can rewrite text you typed in a new tone or length, on your device, in testing
Rewrites text in a different tone or length on the device.
Edits what the person typed locally.
What it can and can't do
What the user does: You tap a button like Make shorter or Make friendlier on a site in the trial
It can
- Change the tone or length of text you typed
- Work on your device without a server
- Offer a few versions to pick from
It cannot
- Work for normal visitors yet, since it is an origin trial
- Work in Firefox, Safari or on phones
- Rewrite text you have not given the page
- Run without the browser downloading the model
How it differs between platforms: Only in a Chrome and Edge testing trial today. Not in Firefox, Safari or on phones.
Browser support
| Browser | Status | First version | Note |
|---|---|---|---|
| Chrome | Behind a flag | 137 | Developer trial |
| Edge | Behind a flag | 137 | None |
| Firefox | Not supported | Not available | None |
| Safari | Not supported | Not available | None |
| Safari on iPhone | Not supported | Not available | None |
| Chrome on Android | Not supported | Not available | None |
| Samsung Internet | Not supported | Not available | None |
How a site asks for it
| API | Rewriter.create({tone,format,length}); r.rewrite(text) |
| Permissions policy | rewriter |
| How access is granted | origin-trial |
| What the user sees | Developer origin trial (137 to 148); flag writer-api |
| 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: Rewrites text in a different tone or length on the device.
Shape: object
How often: on demand
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
tone | enum | None | as-is, more-formal, more-casual | Not listed |
length | enum | None | as-is, shorter, longer | Not listed |
Technical limits
- Not stable
- Same hardware as Prompt API
The story
What it is
A page can rewrite your text in a new tone or length using an AI model on your device.
For you
You click a button like Make it shorter or Sound friendlier. The new text appears on screen. The work happens on your device, so your text is not sent out.
For makers
Makers add polish tools without cloud cost or privacy worries. It helps users write faster. It is in testing, so only some users can use it.
Where you see it
| Type | Example | Apps |
|---|---|---|
| messaging | A web email app turns a blunt draft into a polite one with one click. | Gmail |
| social | A post box offers a shorter version that fits a character limit. | X |
| shopping | A seller tool rewrites a product description in a friendlier voice. | Etsy |
| productivity | A web editor shortens a long paragraph for a slide. | Google Docs |
| enterprise | A customer support tool rewrites a rough reply into a clear message, with no data leaving the device. | None named |
| education | A study site rewrites a hard passage in simpler words. | None named |
| accessibility | A page rewrites jargon into plain language on request. | None named |
Risks
- Early testing only
- May change meaning
What the platform says
- Google Chrome: Rewriter API. Lets sites improve text by changing tone or length with Chrome's built in on device AI.
Good uses and abuse
Legitimate uses
- Tone fixes
Known abuse
- None
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 3 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2025, Chrome 137: Developer trial
Sources
How well checked: Based on official documentation.