Text-Based and Minimalist Browsers
What Lynx, w3m, Links and lightweight graphical browsers are good for, how to use them, and where they fall short on today's web.
Key takeaways
- Terminal browsers such as Lynx, w3m, Links and ELinks display pages as text and are handy over remote connections.
- They generally don't run modern JavaScript, so many interactive sites show little or nothing.
- Skipping images, scripts and third-party content makes pages load quickly and cuts much tracking.
- Text browsers offer a rough but revealing check of a page's structure, headings and alternative text.
- Lightweight graphical browsers need careful attention to updates, because small projects may lag on security fixes.
Text-based and minimalist browsers show you the web with most of the weight removed. They're useful on servers with no graphical interface, on very slow links or old hardware, for checking how readable a page is without scripts, and for reading without distractions. They won't replace a full browser for banking, video or web apps.
The best-known text browsers, such as Lynx, w3m and Links, run inside a terminal window. Minimalist graphical browsers still draw pictures and styles but strip the interface and the extras down.
What a text browser does
A text browser requests a page over HTTP or HTTPS like any other, reads the HTML and renders it as characters in a grid. Headings may appear in color or bold, links are highlighted, and you move between them with the keyboard. Images are replaced by their alternative text or a placeholder, and video simply isn't shown, though some tools can hand a file to another program.
Most apply little or no CSS, so the page appears roughly in the order it's written in the source. That order matters more than the visual layout the designer intended.
The main options
Lynx is one of the oldest browsers still maintained, dating from the early 1990s. It's predictable, widely packaged and good at turning a page into plain text.
w3m is known for handling tables and frames reasonably well in a terminal. It can also work as a pager for HTML you feed it, and some terminals let it show images.
Links and ELinks offer menus, tables and mouse support in many terminals. ELinks grew out of Links and added more configuration.
Browsh takes a different route: it runs a full Firefox in the background and converts the result into terminal characters. It handles modern sites far better and needs far more resources.
Install them from your package manager. On Debian or Ubuntu:
sudo apt install lynx w3m On macOS with Homebrew:
brew install lynx w3m On Windows, the easiest route is usually the Windows Subsystem for Linux.
Basic use
Open a page by passing its address:
lynx https://example.com
w3m https://example.com In Lynx, the up and down arrows move between links, the right arrow or Enter follows one, the left arrow goes back, g asks for a new address and q quits. The bottom of the screen lists the main keys. In w3m, U prompts for an address, B goes back and q quits.
The most useful tricks work without any interaction. To print a page as plain text:
lynx -dump https://example.com
w3m -dump https://example.com To list the links on a page:
lynx -dump -listonly https://example.com These fit neatly into scripts: save documentation for offline reading, compare two versions of a page, or check that a status page contains an expected phrase.
Configuring what you see
Text browsers are adjustable, and a few options remove common irritations. Lynx has an options screen, opened with o, where you can change how cookies are handled, whether your preferences are saved and how images are indicated. It also has a "vi keys" setting if you prefer moving with h, j, k and l. The system-wide configuration file is usually lynx.cfg, though its location varies by distribution.
You can set options per run, too. To accept cookies for a single session and send the output as plain text with a chosen width:
lynx -accept_all_cookies https://example.com
w3m -dump -cols 80 https://example.com Use the first with care, since accepting everything defeats one of the quieter benefits of browsing this way. w3m can also format a local file or text piped into it, which is handy for reading HTML email attachments or generated reports without opening a graphical program:
w3m -T text/html -dump report.html If a page looks garbled, check that your terminal uses UTF-8 and a font that includes the characters the page needs. Wide tables are the other frequent problem. Making the terminal window wider, or choosing the browser that handles tables better for that site, usually helps.
When they're the right tool
- On a remote server. Over SSH there's no graphical browser. A text browser can fetch a download page, test a local web service or read a local admin page.
- On a poor connection. Pages that take ages in a graphical browser often arrive quickly as text.
- On very old hardware. Memory needs are tiny compared with a modern browser.
- For focused reading. Articles and documentation become plain, quiet text.
- For testing structure. You see what's left when design and scripts are gone.
For pure checking of responses, command-line tools such as curl are often better, since they show headers and status codes exactly. A text browser is for reading the result.
Where they fall short
Much of today's web builds its content with JavaScript. A page like that may render as an empty shell or a message asking you to enable scripts. Sign-in flows with challenges, interactive maps, video calls and most web apps are out of reach.
Security deserves care too. A smaller attack surface helps, since there's no large scripting engine, but these programs still parse untrusted input and need updates. Keep them patched through your package manager, avoid running them as an administrator, and read certificate warnings instead of accepting them by habit. If a warning puzzles you, see what certificate errors mean.
Privacy is better in some ways, with few third-party requests and no ad scripts, but the site still sees your IP address and any cookies you accept.
A readability and accessibility check
Viewing your own site in Lynx is a quick sanity test. Ask:
- Does the main content appear, or is the page blank without scripts?
- Is the reading order sensible, or do you wade through dozens of menu links first?
- Do headings describe the sections?
- Do images have useful alternative text, and are decorative ones silent?
- Are link labels meaningful out of context?
- Can the key form be completed?
This is only a rough proxy. Screen readers work from the browser's accessibility information and often handle scripts fine, so test with real assistive technology as well. Web accessibility explained and writing useful alt text go further.
Minimalist graphical browsers
Between a terminal and a mainstream browser sit several choices.
Small engines. NetSurf and Dillo use their own compact rendering code. They're quick and frugal, and they support only part of the modern web platform.
Full engine, small shell. qutebrowser is controlled mainly from the keyboard with Vim-like commands and builds on a Chromium-based component from the Qt toolkit. Browsers based on WebKitGTK, such as GNOME Web or the very spare surf, offer simple interfaces over a real engine. Because the engine is large, these save less memory than you might hope.
In the second group, the engine version on your system decides your security. A Linux distribution that updates the engine library slowly leaves the browser exposed, however elegant the interface is.
How to judge a small browser before relying on it
Minimalist projects vary widely in health. Before making one part of your routine, spend a few minutes on these checks:
- Release history. Look for recent releases and a record of fixing reported security problems.
- Engine source. Find out whether it has its own engine, uses a system library or bundles a copy. Each answer tells you who has to ship the patches.
- Distribution. A package from your operating system's repository is easier to keep current than a manual download.
- TLS handling. Confirm that it verifies certificates by default. A browser or script that silently accepts bad certificates gives up the protection HTTPS is supposed to provide.
- Downloads and helpers. Some terminal browsers can launch other programs for certain file types. Review those associations, and don't let content from unknown sites open automatically.
Also decide what the browser is for. A tool you use to read documentation on a server needs far less trust than one holding your logins. Keeping it limited to low-risk reading is a sensible default, with your fully supported mainstream browser reserved for accounts that matter.
Getting a lighter web in a normal browser
You can capture much of the appeal without switching:
- Use reader mode for articles.
- Block ads and third-party scripts with a trusted content blocker; see how ad blockers work.
- Disable image loading or JavaScript per site where your browser allows it.
- Prefer text-focused versions that some news sites and services provide.
- Subscribe to feeds and read them in a feed reader.
For site owners, this is a reminder that pages which deliver real content in HTML load faster and fail more gracefully. Why websites load slowly explains where the weight comes from.
Common questions
Can I use a text browser for logging in?
Simple form logins often work, since cookies are supported. Sites that require scripts, challenges or hardware-based sign-in usually won't. Avoid typing important passwords on a shared server where others have administrator access.
Is a text browser anonymous?
No. It sends your IP address like any browser, and its unusual identification string can even make it stand out in logs.
Why does a page ask me to enable cookies?
Some sites need them for sessions. Most text browsers let you accept or refuse cookies in their options, and some prompt for each one.