🧩

HTML to Text (URL)

Convert a remote HTML URL to a downloadable plain-text file.

GET 1 credit /v1/convert/html-to-text-file
curl -OJ "https://convert.toolkitapi.io/v1/convert/html-to-text-file?url=https://toolkitapi.io/article"
import httpx

resp = httpx.get(
    "https://convert.toolkitapi.io/v1/convert/html-to-text-file?url=https://toolkitapi.io/article",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/html-to-text-file?url=https://toolkitapi.io/article", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
Binary text file streamed as a download (Content-Type: text/plain)

Description

Convert a remote HTML URL to a downloadable plain-text file.

How to Use

1

1. GET with the page `url`.

2

2. Optionally set `preserve_links`, `preserve_tables`, or `filename`.

3

3. Save the streamed text.

About This Tool

Fetches a page and streams back a plain-text file. URL-based counterpart to [HTML to Text](/convert/tools/html-to-text).

Why Use This Tool

Frequently Asked Questions

Are scripts and styles stripped?
Yes — fully removed from the output.
Are links visible?
Only with `preserve_links=true` — links appear as `text [url]`.
Encoding?
UTF-8 output, regardless of the source encoding.

Start using HTML to Text (URL) now

Get your free API key and make your first request in under a minute.