HTML to Text Converter

This tool strips the tags and markup out of HTML to leave clean, readable plain text. HTML is full of angle-bracket tags, attributes and entities that structure and style a page but get in the way when you just want the words. Copying text out of a web page, an email or a content management system often drags along a tangle of markup, and pasting it elsewhere brings unwanted formatting. Removing it by hand is tedious, especially for long passages. This converter does it instantly. You paste your HTML, and the calculator removes the tags, converts HTML entities such as ampersand codes back into their real characters, tidies up the whitespace, and returns the plain text underneath. The result updates as you type and runs entirely in your browser, so nothing is uploaded. Use it to extract readable content from a web page or email, to clean up text before pasting it somewhere plain, to get a word count of the actual content, or for development when you need the text without the markup. The tool also collapses runs of blank space and line breaks that the tags leave behind, so the output reads naturally rather than being riddled with gaps. It handles the common entities, turning codes like the ones for ampersands, angle brackets and non-breaking spaces back into the characters they represent, and it strips script and style blocks so their contents do not leak into the text. The result is the human-readable content of the HTML, ready to copy. A note: this extracts text only, discarding all formatting, links and images, which is exactly the point when you want clean plain text, but means structure like headings and lists becomes ordinary lines.

-

Removes tags, decodes entities and tidies whitespace, including stripping script and style blocks. Discards formatting, links and images. Runs entirely in your browser.

How it works

The converter first removes any script and style blocks so their code does not appear, then strips all remaining tags. It uses the browser's own parser to decode HTML entities back into their characters, and finally collapses extra spaces and blank lines so the output reads as clean, natural plain text.

Worked example

Pasting the HTML for a paragraph that reads Hi there, welcome to Calculate and enjoy, with bold and link tags and an ampersand entity, returns the plain text Hi there, welcome to Calculate & enjoy! The tags are removed, the link becomes plain text, and the ampersand entity is decoded back to the symbol.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.