How to save or extract the text of a webpage (plain text, editable text or searchable PDF)
The fastest way to save a webpage as text is to press Ctrl + A (Cmd + A on Mac) to select everything, copy it, and paste it into a plain text editor such as Notepad or TextEdit, or paste it without formatting with Ctrl + Shift + V (Cmd + Shift + V on Mac) in apps that support it. Firefox can also save a page directly as a .txt file: press Ctrl + S or Cmd + S and choose Text Files as the file type. Chrome, Edge and Safari have no text option in Save page as.
Which method is best depends on what you want to do with the words next. Plain text is ideal for notes, translation and AI tools. Editable text belongs in Word or Google Docs. A searchable PDF keeps the text together with the layout and links, which is better for archiving.
Plain text, editable text or searchable PDF?
| Format | What you get | Good for | Loses |
|---|---|---|---|
| Plain text (.txt) | Just the words, no formatting | Notes, translation, AI tools, scripts | Headings, links, images, tables |
| Editable document (.docx, Google Docs) | Text with basic formatting you can change | Rewriting, quoting, reports | Original page design |
| Searchable PDF | Real text inside a fixed layout, with links | Archiving, sharing, citing | Easy editing |
Pick the format first, then the method.
Method 1: copy and paste as plain text
This works in every browser on every computer.
- Open the page. For a cleaner result, switch to Reader mode first (see Method 3).
- Select the text: Ctrl + A or Cmd + A selects the whole page, or drag from the first word to the last.
- Copy with Ctrl + C or Cmd + C.
- Paste into a plain text editor: - Windows: Notepad strips formatting automatically. Paste with Ctrl + V and save as .txt. - Mac: in TextEdit, choose Format > Make Plain Text (or Cmd + Shift + T) before pasting, then save.
- To paste into a document without the page's fonts and colors, use Ctrl + Shift + V (Cmd + Shift + V on Mac) in Google Docs, Paste and Match Style (Cmd + Option + Shift + V) in many Mac apps, or Keep Text Only from the Paste Options in Microsoft Word.
Select all picks up everything, including menus, footer links and cookie notices, so expect some cleanup at the top and bottom.
How to select all the text on a webpage (and only the part you want)
Ctrl + A (Cmd + A on Mac) selects the whole document, but only if the page itself has the focus. Three situations change the result:
- You clicked inside a box first, such as a search field or a comment form: Ctrl + A then selects only the contents of that box. Click on an empty part of the page and try again.
- The page is a web app whose content scrolls inside a panel (webmail, chat, documentation viewers): Ctrl + A may select only the visible part, or nothing useful. Reader mode or the site's own export works better.
- You want just the article. Click right before the first word, scroll to the last word, then hold Shift and click after it. Everything in between is selected, however long the page is, without dragging.
Method 2: save the page as a .txt file in Firefox
Firefox is the only major desktop browser that saves a page directly as plain text.
- Press Ctrl + S (Windows) or Cmd + S (Mac), or open the ☰ menu and choose Save Page As....
- In the file type menu, choose Text Files.
- Pick a name and folder and click Save.
You get a .txt file with the page's text in reading order. Links are dropped and some layouts produce odd line breaks, but for articles it is quick and clean.
In Chrome, ⋮ > Cast, save, and share > Save page as... offers Webpage, HTML Only, Webpage, Single File and Webpage, Complete, none of which is plain text. Google describes these on its save pages help page. Edge offers the same choices, and Safari's File > Save As offers Web Archive and Page Source.
Method 3: Reader mode for clean text
Reader mode strips menus, ads and sidebars and leaves the article. Copying from there gives far cleaner text than copying the raw page.
- Microsoft Edge: press F9 for Immersive Reader.
- Firefox: click the Reader View icon in the address bar, or press F9 on Windows or Cmd + Option + R on Mac.
- Safari: choose Show Reader from the Smart Search field or press Cmd + Shift + R.
- Chrome: right-click the page and choose Open in reading mode. It opens a simplified text view you can read and copy from.
Then select all, copy and paste as in Method 1. Reader mode is offered only on pages the browser recognises as articles.
Method 4: when a site blocks selecting or copying
Some sites disable text selection or right-click. The text is still in the page; there are a few ways to reach it.
- Reader mode usually ignores those restrictions, because it rebuilds the page.
- Print to PDF first. Press Ctrl + P or Cmd + P, choose Save as PDF, then open the PDF and copy the text from there. If the site's print stylesheet hides content, see our guide to Chrome Save as PDF cutting off the page.
- Use the DevTools console. Press F12 (or Cmd + Option + J on Mac for the Console), type
copy(document.body.innerText)and press Enter. The visible text of the whole page is now on your clipboard. Chrome may ask you to type "allow pasting" before it accepts pasted commands; typing the command by hand avoids that. - View the source with Ctrl + U or Cmd + Option + U to see the raw HTML, which includes the text among the markup.
- Turn off JavaScript for that site. Most copy blockers are scripts. In Chrome, click the View site information icon to the left of the address, open Site settings, set JavaScript so it is not allowed and reload the page. Restore the setting afterwards, because many sites stop working without scripts. Google explains per site permissions on its site settings help page.
- When only right-click is blocked, the keyboard usually still works: select with Shift and the arrow keys, or Ctrl + A, and copy with Ctrl + C.
Respect copyright: extracting text for personal notes or research is one thing, republishing it is another.
Method 5: get editable text in Word or Google Docs
If you need to edit the text with its headings and paragraphs roughly intact, go through a PDF or paste with formatting.
- Paste with formatting into Word or Google Docs with plain Ctrl + V or Cmd + V. You keep headings, bold and links, but also the site's fonts and sometimes odd spacing. Clearing formatting afterwards (Ctrl + \ in Google Docs, or Clear All Formatting in Word) gives a neutral starting point.
- Convert a PDF. Save the page as a PDF, then open the PDF in Microsoft Word, which converts it into an editable document, or upload it to Google Drive and choose Open with > Google Docs. The conversion is not perfect with complex layouts, but for articles it works well.
- Export from an extension. PrintFriendly, according to its Chrome Web Store listing, can save a cleaned page as Word or Markdown.
Save the text as a Word (.docx) file
No browser saves a page straight to .docx, but two short routes get you there.
- Microsoft Word: copy the text, paste it into a new document and choose File > Save As with the Word Document (.docx) format. In current Microsoft 365 versions, Ctrl + Shift + V (Cmd + Shift + V on Mac) pastes text only, without the site's fonts and colors.
- Google Docs: paste into a new document, then use File > Download > Microsoft Word (.docx). The same menu also offers Plain Text (.txt), which makes Google Docs a handy way to produce a .txt file from Chrome on any computer.
Paste with formatting if you want to keep headings, lists and links; paste as text only if you want a clean document to restyle.
Method 6: text inside images
Sometimes the text you need is part of an image, a screenshot or a scanned document embedded in the page. Copying will not reach it, but optical character recognition will.
- Chrome: right-click the image and choose Search image with Google Lens; the Lens panel lets you select and copy the text it finds.
- Mac, iPhone and iPad: Live Text lets you select text in images directly in Safari and in Photos.
- Windows 11: the Snipping Tool's Text actions button extracts text from a capture.
Check the result carefully, since recognition errors are common with small or stylised fonts.
Method 7: on your phone
On iPhone and Android, press and hold a word, drag the selection handles over the text you want (Chrome on Android also offers Select all), tap Copy, and paste into Notes or any text app. Reader view in Safari, or the simplified view in Chrome for Android, cuts out menus first. For long pages, saving as PDF and copying from the PDF can be easier than dragging selection handles across dozens of screens; our guide to saving a webpage as PDF on any device has the phone steps.
Extensions, online tools and the command line
Several extensions and websites extract text for you. Web.txt, for example, converts pages to .txt files; on the Chrome Web Store (September 2026) it had about 2,000 users and a 3.2 rating from 8 ratings. Online "URL to text" tools fetch the page from their own servers, which means they cannot see pages you are signed in to, and you are sending the address to a third party.
If you are comfortable with a terminal, text browsers such as lynx can dump a page's text with a single command (lynx -dump followed by the address), and developers often use scripts that fetch the HTML and strip the tags. These are the right tools for many pages at once.
Extract the text of a whole website
Every method above works on one page at a time, and so does TruePage: it converts the page open in your tab and does not crawl a website. For dozens or hundreds of pages you need a tool that follows links.
- wget (free, command line) can download a whole site for offline use:
wget --mirror --convert-links --adjust-extension --page-requisites --no-parentfollowed by the address. You get HTML files, which you can then turn into text with lynx or a script. wget does not run JavaScript, so sites that build their content with scripts come out empty or incomplete. - HTTrack (free, with a graphical interface on Windows) does the same job without typing commands.
- If the site is yours, use its own export: WordPress, for example, has Tools > Export in the dashboard, which downloads all posts and pages in one file.
Crawling someone else's site sends many requests in a short time. Add a pause between requests (wget's --wait=2), check the site's terms, and keep the copy for personal use.
A searchable PDF: text plus layout in one file
A PDF created from the print dialog already contains real text: you can search it, copy from it, and open it in Word to edit. When you need to keep the text and also prove how the page looked, a searchable PDF is often better than a .txt file.
If you want the text but not the images, our TruePage extension has a mode for that. Disclosure: TruePage is made by Osabee, the publisher of this guide. Its Text only mode removes images, video, audio, canvas, SVG, iframes and embeds, and keeps the text and links in a PDF with selectable, searchable text; on a news homepage we measured 13.5 MB in Text only against 62.7 MB in Full page. It scrolls the whole page first and disables print-only stylesheets, so text the print dialog would hide is included. To be clear about the limits: it produces a PDF, not an editable .docx or .txt file, and it works one page at a time. It offers 4 free conversions, then a one-time $14.99, €12.99 or £10.99, on the Chrome Web Store and Edge Add-ons. If ads in the page are your concern, see our guide to saving an article as a PDF without ads.
Which method should you use?
- A few paragraphs: select, copy, paste without formatting.
- A whole article as .txt: Reader mode, then copy, or Firefox's Save Page As with Text Files.
- Text to edit in a document: paste into Word or Google Docs, or convert a saved PDF.
- A site that blocks copying: Reader mode, a PDF, or the DevTools console command.
- Text inside images: Google Lens, Live Text or the Snipping Tool.
- An archive you can search later: a PDF with real text.
- Hundreds of pages or a whole site: wget, HTTrack or the site's own export.
Frequently asked questions
How do I save a webpage as a text file?
To save a webpage as a text file, the quickest route is Firefox: press Ctrl + S or Cmd + S, choose Text Files as the file type and save. In Chrome, Edge or Safari, press Ctrl + A or Cmd + A to select the page, copy it, paste it into Notepad or TextEdit in plain text mode, and save the file with the .txt extension.
How do I copy text from a website that does not allow copying?
To copy text from a website that does not allow copying, open the page in Reader mode, which rebuilds the article without the site's restrictions. Other options are saving the page as a PDF and copying from the PDF, or opening the DevTools console with F12 and running copy(document.body.innerText). Use extracted text for personal reference and respect the site's copyright.
How do I convert a webpage to editable text in Word?
To convert a webpage to editable text in Word, select the text on the page, copy it and paste it into Word, choosing Keep Text Only from the Paste Options if you want no web formatting. For a whole page with headings, save the page as a PDF first and open that PDF in Word, which converts it into an editable document.
Can Chrome save a webpage as plain text?
Chrome cannot save a webpage as plain text directly: its Save page as dialog offers only Webpage, HTML Only, Webpage, Single File and Webpage, Complete. To get plain text from Chrome, select all, copy and paste into a plain text editor, use reading mode first for cleaner text, or run copy(document.body.innerText) in the DevTools console.
How do I select all the text on a webpage?
To select all the text on a webpage, click on an empty part of the page and press Ctrl + A on Windows or Cmd + A on Mac. If only a box gets selected, the focus was inside a field or a scrolling panel. To select just the article, click before the first word, scroll to the end, hold Shift and click after the last word, then copy with Ctrl + C or Cmd + C.
How do I extract text from an image on a webpage?
To extract text from an image on a webpage, use optical character recognition. In Chrome, right-click the image and choose Search image with Google Lens, then select the text. On Mac, iPhone and iPad, Live Text lets you select text inside images in Safari. On Windows 11, the Snipping Tool's Text actions button copies text from a screen capture.
Is a PDF or a text file better for saving webpage text?
A text file is better for saving webpage text when you plan to edit, translate or feed it to another tool, because it contains only the words. A PDF with real text is better for archiving and citing, because it keeps the words together with layout, links and images, and it stays searchable. Many people keep a PDF for the record and copy the text when needed.
How do I save the text of a webpage on iPhone or Android?
To save the text of a webpage on iPhone or Android, press and hold a word, drag the selection handles over the text (or tap Select all where offered), tap Copy, and paste into Notes or another text app. Switching to Reader view first removes menus and ads. For very long pages, saving the page as a PDF through Share and Print, then copying from the PDF, is often easier.