# Edit text on any website

> Edit or change the text on any web page: double-click it in Inspect Element, turn on document.designMode, or click and type with Sitepeel. Only you see it.

Canonical page: https://sitepeel.dev/guides/edit-text-on-any-website/

To edit text on a website, choose Edit text in the Sitepeel Chrome extension and click the words, or right-click them, choose Inspect and double-click the text in the Elements panel. To make the whole page editable, type `document.designMode = 'on'` in the Console. The change is only on your screen and goes away when you reload.

Published: 2026-11-11

Tool used in this guide: [Website text editor](https://sitepeel.dev/website-text-editor/index.md)

## In short

- Three ways: Sitepeel’s Edit text tool, the Elements panel, or `document.designMode`
- The change is only in your browser: nobody else sees it
- A reload brings the original text back
- To change your own site for everyone, edit it in its CMS or code

## How to use it

1. **Right-click the text** Right-click the words you want to change and choose Inspect. Safari calls it Inspect Element.
2. **Double-click it in Elements** The element is highlighted in the panel. Double-click the text between its tags.
3. **Type the new words** Type your text and press Enter. The page updates at once.
4. **Keep a copy** Copy the new wording or take a screenshot. A reload brings the original back.

## Three ways to edit text on a page

Ways to change the text on a page you have open

| Way | How | Good for |
| --- | --- | --- |
| Sitepeel’s Edit text tool | Choose Edit text, click any text and type | Trying new copy in the real layout, with undo |
| The Elements panel | Right-click > Inspect, double-click the text, press Enter | One exact change, with nothing to install |
| `document.designMode` | One line in the Console makes the whole page editable | Many edits in a row |
| Edit as HTML | Right-click the element in the Elements panel > Edit as HTML | Changing words and tags together |

Good to know: Each one changes only the copy of the page in your browser. Reload and the original is back.

## Use Inspect Element to change text

- Right-click the text and choose Inspect.
- In the Elements panel, double-click the text between the tags.
- Type the new text and press Enter.
- For a bigger change, right-click the element, choose Edit as HTML, then press Ctrl+Enter (Cmd+Enter on a Mac).
- Press Ctrl+Z (Cmd+Z) in the panel to undo.

Tip: A sentence with a link or bold word inside is split into pieces. Edit each piece on its own.

- [Shortcuts that open Inspect Element](https://sitepeel.dev/guides/inspect-element-shortcut/index.md)
- [Inspect element on a Mac, Safari included](https://sitepeel.dev/guides/inspect-element-on-mac/index.md)

## Make the whole page editable

Open the Console (Ctrl+Shift+J in Chrome, or Cmd+Option+J on a Mac), type this line and press Enter. Then click anywhere on the page and type, as in a document.

- Set it to `off` to stop editing. Your changes stay until you reload.
- Chrome warns you before your first paste into the Console. The line is short: type it by hand.

Example: console.js

```
document.designMode = 'on'
```

Watch out: Only run Console code you understand. Never paste in code a stranger sent you.

## Edit text with Sitepeel

In the Sitepeel Chrome extension, choose Edit text and click any words on the page. Type the new copy in place and press Esc when you are done. Ctrl+Z (Cmd+Z) undoes an edit.

It is made for trying a headline or a button label in the real layout. Like the other ways, it changes only your tab, and a reload brings the original back.

- [Edit text: Sitepeel’s website text editor](https://sitepeel.dev/website-text-editor/index.md)
- [Preview new copy in a real layout](https://sitepeel.dev/guides/preview-website-copy/index.md)

## Find and replace text on a page

Ctrl+F (Cmd+F) finds text on a page but can’t replace it. To swap a word everywhere on the page you have open, run this in the Console, with your own words in place of old and new.

Example: replace-text.js

```
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
while (walker.nextNode()) {
  walker.currentNode.nodeValue = walker.currentNode.nodeValue.replaceAll('old', 'new');
}
```

## Why an edit doesn’t stick

What happens to an edit, and why

| What happens | Why |
| --- | --- |
| The old text is back after a reload | The browser fetched the page again. Your edit was never sent to the site |
| The text snaps back by itself | The page’s scripts drew that part again and replaced your edit |
| You can’t click into the text | It is part of an image, a video or a canvas, not text |
| Other people still see the old text | Only the site’s owner can change what the server sends |

Good to know: An edited page is a mock-up. Don’t show a screenshot of it as what the site really says.

- [Keep an edit after a reload, in your own browser](https://sitepeel.dev/guides/make-inspect-element-changes-permanent/index.md)

## Change the text on your own website

- Built with WordPress, Wix, Squarespace or Shopify: sign in and change the page in its editor.
- Written in code: change the text in the source files and publish again.
- Not sure what it runs on? Sitepeel’s free tech stack checker names the CMS or site builder.
- Try the new wording in the live layout first, then make the real change.

- [See what a website is built with, free](https://sitepeel.dev/free-tools/built-with/index.md)

## Questions and answers

### How do I use Inspect Element to change text?

Right-click the text and choose Inspect. In the Elements panel, double-click the text between the tags, type the new words and press Enter. The page updates at once, only in your browser, until you reload.

### Why can’t I edit a text on a page?

It may be inside an image, a video or a canvas, which hold no text to edit. Or the page’s scripts draw it again right after you type. Ordinary headings, paragraphs, links and buttons can be changed.

### How do I edit an already existing website?

If it is yours, sign in to its CMS or site builder, or change the source files and publish. If it isn’t, you can only change your own view of it in your browser.

### How do I change the text font on a website?

In DevTools, select the text and change font-family in the Styles pane. Sitepeel’s Swap fonts tool tries 2,100+ fonts on a page. Both are previews in your browser. On your own site, change the font in its theme or CSS.

### Can other people see the text I changed?

No. The edit lives in your browser’s copy of the page. The website, and what everyone else sees, stays the same.

## Further reading

- [Chrome DevTools: get started with viewing and changing the DOM](https://developer.chrome.com/docs/devtools/dom)
- [MDN: Document.designMode](https://developer.mozilla.org/en-US/docs/Web/API/Document/designMode)
- [MDN: Document.createTreeWalker()](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)
- [Chrome for Developers: the Console’s paste warning](https://developer.chrome.com/blog/self-xss)

## Related pages

- [Website text editor](https://sitepeel.dev/website-text-editor/index.md): Try new headings and website copy directly in the layout. Edit text locally with Sitepeel to check wrapping and fit before updating your site.
- [Preview copy in a layout](https://sitepeel.dev/guides/preview-website-copy/index.md): Try new headlines, button labels and section orders in place with Sitepeel’s Edit text and Move & delete tools, before you change your site.
- [Make Inspect Element changes stay](https://sitepeel.dev/guides/make-inspect-element-changes-permanent/index.md): Make Inspect Element changes stay after a refresh with Chrome’s Local Overrides, a user style or a user script. They last in your browser, never on the site.
- [Inspect element shortcuts](https://sitepeel.dev/guides/inspect-element-shortcut/index.md): The inspect element shortcut for Chrome, Edge, Firefox and Safari on Windows, Mac, Linux and Chromebook, and what F12, Ctrl+Shift+I and Ctrl+Shift+C each open.
- [Inspect element on a Mac](https://sitepeel.dev/guides/inspect-element-on-mac/index.md): Inspect element on a Mac in Chrome, Safari, Firefox and Edge: the shortcuts, how to turn on Safari’s Develop menu, and why Inspect is missing or greyed out.
