Text Editor vs Word Processor: What to Use for Web Content
For anything that will end up on a website, a blog or an email newsletter, write or finish it in an editor that produces clean HTML, not in a word processor. Word processors like Microsoft Word are built to make printed pages look right. When you copy their text into a website, the formatting comes along as extra hidden code that can clash with the site's design.
That doesn't mean you have to give up Word or Google Docs. Draft wherever you like. The trick is to clean the text on its way to the web, and to format it with structure (headings, lists, links) rather than with fonts and sizes.
Three kinds of tool, three jobs
The words "text editor" and "word processor" get used loosely, so here's what each one actually does.
| Tool | What it's for | Examples |
| Word processor | Documents that will be printed or shared as files: letters, reports, CVs. Controls page size, margins, fonts and layout. | Microsoft Word, Google Docs, LibreOffice Writer, Pages |
| Plain text editor | Raw text with no formatting at all. Used for code, notes and config files. | Notepad, TextEdit in plain text mode, code editors |
| Rich text (HTML) editor | Formatted text that's stored as HTML, the language web pages are written in. What you see in the editor is what the web page gets. | The editor inside a blog or CMS, our Text Editor |
HTML, for anyone new to it, is the set of tags that tell a browser what each piece of text is: <h2> for a heading, <p> for a paragraph, <ul> for a bulleted list, <a> for a link. A rich text editor writes these tags for you as you click toolbar buttons.
Why pasting from Word gets messy
A word processor tracks a lot of detail about how text looks: the exact font, its size in points, line spacing, colours, page-level styles, sometimes comments and tracked changes. When you copy text, your computer puts that styling on the clipboard along with the words, so the destination app can try to recreate the look.
A website editor receives all of that and does its best to keep it. The result is often HTML stuffed with inline styles: every paragraph carrying its own font name, size and spacing. You'll see the symptoms on the live page:
- One paragraph in a different font or size from the rest of the site.
- Odd gaps between paragraphs, or none at all.
- Headings that look big but aren't real headings, so they don't show up in the page structure.
- Text that looks fine on a laptop and strange on a phone, because a fixed font size was carried over.
- Empty lines that you can't delete, made of invisible formatting.
The site's own design is supposed to decide fonts and spacing. Pasted styling overrides it, piece by piece.
Structure, not looks
The habit that fixes most of this is simple: mark what each piece of text is, not what it should look like.
- Use real headings. Pick "Heading 2" from the paragraph menu rather than making normal text bigger and bold. A real heading becomes an
<h2> tag, which helps screen readers and search engines understand your page.
- Use real lists. Click the bullet or numbering button. Don't type dashes or "1." at the start of lines.
- Don't set fonts or sizes. Let the website's design handle them. If everything is the default, everything will match.
- Use bold and italic for meaning. A warning, a key term, a book title. Not for decoration.
- One empty line between paragraphs, made by pressing Enter once. Don't press Enter twice to add space.
Three ways to get clean text onto the web
1. Paste without formatting
Most apps have a "paste as plain text" option that drops all styling. In Google Docs, the shortcut for paste without formatting is Ctrl + Shift + V on Windows and ChromeOS, or ⌘ + Shift + V on a Mac, and many browsers and web editors support the same shortcut. You get just the words and then add headings, lists and links in the website's own editor.
This is the quickest fix for short pieces. For a long article with lots of headings and lists, re-adding all the structure by hand gets tedious.
2. Strip it to plain text first
If a piece of text keeps dragging in strange formatting, run it through a plain-text step. In our Text Editor, paste it in and use Export TXT, which saves the words only as document.txt. Everything decorative is gone. It's also useful when a form or app accepts plain text only.
3. Format in an HTML editor and copy the HTML
This is the method that keeps your structure and loses the clutter. Using the Text Editor:
- Click into the editor and replace the sample line with your text, or paste it in from another document. Formatting such as bold and lists is kept when you paste.
- Select any pasted text that has odd fonts or colours and click the eraser button to clear its formatting.
- Use the paragraph menu to turn titles into proper headings.
- Add links, tables or horizontal lines where you need them.
- Click the source view button (the first one on the toolbar) to look over the raw HTML if you want to check it.
- Click Copy HTML, then paste into the HTML or code view of your blog editor, shop product description or email template.
The important detail in the last step: Copy HTML copies the code itself. Paste it into a field that expects HTML, usually labelled "HTML", "Code" or "Source". Paste it into Word or a normal email body and you'll see the tags as text.
A few other things to know before you start. The editor doesn't save your work, so nothing is kept if you close the tab or refresh; copy or export before you leave. Images you insert are embedded inside the HTML as data rather than linked, which makes the HTML long and isn't shown by some websites and email clients. For the web, it's usually better to upload images to your site separately and add them there. And the exported HTML file contains just your content, with no page styling around it.
So which should you use?
- Printed or file-based documents (a CV as a PDF, a letter, a report with page numbers): a word processor.
- A blog post, product description, newsletter or forum post: write anywhere, but format in an HTML editor, or in the site's own editor, and bring text in without its old formatting.
- Code, config files or text that must have no formatting: a plain text editor.
If your website's built-in editor already works well for you, use it. The extra step is only needed when text arrives from somewhere else and brings its baggage with it. If a page you've already published looks inconsistent, open its HTML view: long runs of style="..." attributes are the sign that pasted formatting got in, and replacing that section with a clean copy is usually faster than fixing it line by line.
KhanTools — Free Online Web Tools
Free browser-based tools for images and PDFs. No uploads. 100% private.
Blog ·
About ·
Privacy Policy ·
Terms of Service ·
Contact
JavaScript is required to use KhanTools. Please enable JavaScript in your browser.