W3M(1)
๐ฆ W3M(1) โ the man page, bestie ๐
okay so welcome to the w3m(1) page, straight out of the General Commands Manual โจ this is the whole thing, every flag, every file, no skips, no cap. grab a snack ๐
๐ธ NAME ๐ธ
w3m โ a text based web browser and pager ๐ซถ
โจ SYNOPSIS โจ
w3m [OPTION]... [ file | URL ]...
๐ DESCRIPTION ๐
w3m is a text based browser that can display local or remote web pages plus other documents too. It handles HTML tables and frames but it ignores JavaScript and Cascading Style Sheets โ like, straight up does not care about them ๐. w3m can also serve as a pager for text files named as arguments or passed on standard input, and as a general purpose directory browser. multi-talented, honestly ๐
w3m organizes its content in buffers or tabs, so navigation between them is easy peasy. With the w3m-img extension installed, w3m can display inline graphics in web pages ๐. And whenever w3m's HTML rendering capabilities don't meet your needs, the target URL can be handed over to a graphical browser with a single command. iconic behavior, truly.
For help with runtime options, press H while running w3m. iykyk ๐
๐ฆ ARGUMENTS ๐ฆ
When given one or more command line arguments, w3m will handle targets according to content type. For web, w3m gets this information from HTTP headers; for relative or absolute file system paths, it relies on filenames.
With no argument, w3m expects data from standard input and assumes text/plain unless another MIME type is given by the user.
If provided with no target and no fallback target (see for instance option -v below), w3m will exit with usage information. not the vibe, but okay ๐ญ
โจ OPTIONS โจ
Command line options are introduced with a single - character and may take an argument. periodt.
๐ General options
-Bโ with no other target defined, use the bookmark page for startup-Hโ Deprecated! Do not use! use-o high-intensity=trueinstead-Mโ monochrome display-no-mouseโ deactivate mouse support-numโ display each line's number-Nโ distribute multiple command line arguments to tabs. By default, a stack of buffers is used-ppc numโ width of num pixels per character. Range of 4.0 to 32.0, default 8.0. Larger values will make tables narrower. (Implementation not verified)-ppl numโ height of num pixels per line. Range of 4.0 to 64.0. (Implementation not verified)-title,-title=TERMโ use the buffer name as terminal title string. With specified TERM, this sets the title configuration style accordingly-vโ with no other target defined, welcome users with a built-in page-Wโ toggle wrapping mode in searches-Xโ do not initialize/deinitialize the terminal+numโ go to line num; only effective for num larger than the number of lines in the terminal
๐ง Browser options
-cols numโ HTML is rendered to lines of num characters-cookie,-no-cookieโ use stored cookies and accept new ones, or do neither-Fโ render frames-graph,-no-graphโ use or do not use graphic characters for drawing HTML table and frame borders-header stringโ append string to the HTTP(S) request. Expected to match the header syntaxVariable: Value-mโ Render the body of Usenet messages according to the header "Content-type"-no-proxyโ do not use proxy-post fileโ use POST method to upload data defined in file. The syntax to be used isvar1=value1[&var2=value2]...-4โ IPv4 only. Corresponds todns_order=4in configuration files-6โ IPv6 only. Corresponds todns_order=6in configuration files-insecureโ use insecure SSL config options, alias for-o ssl_cipher=ALL:eNULL:@SECLEVEL=0 -o ssl_min_version=all -o ssl_forbid_method= -o ssl_verify_server=0
โ ๏ธ bestie, -insecure is literally called insecure. it turns off verification. you've been warned ๐
๐ Text pager options
-l numโ number of lines preserved internally when receiving plain text from stdin (default 10,000)-rโ use caret notation to display special escape characters (such as ANSI escapes or nroff-style backspaces for bold and underlined characters) instead of processing them-sโ squeeze multiple blank lines into one-t numโ set tab width to num columns. No effect on stdout
๐ Data type/encoding options
-I charsetโ user defined character encoding of input data-O charsetโ user defined character encoding of output data-T typeโ explicit characterization of input data by MIME type
โญ Options for data output, followed by immediate exit
-dumpโ dump rendered page into stdout. Set implicitly when output is directed to a file or pipe-dump_sourceโ dump the page's source code into stdout-dump_headโ dump response of a HEAD request for a URL into stdout-dump_bothโ dump HEAD, and source code for a URL into stdout-dump_extraโ dump HEAD, source code, and extra information for a URL into stdout-helpโ show a summary of compiled-in features and command line options-show-optionโ show all available configuration options-versionโ show the version ofw3m
๐ฅ Options for overriding default settings and resources
-bookmark fileโ use file instead of the defaultbookmark.htmlfile-config fileโ use file instead of the default configuration file-o option=valueโ modify one configuration item with an explicitly given value; withoutoption=value, equivalent to-show-option-debugโ use debug mode (only for debugging)-reqlogโ log headers of HTTP communication in file~/.w3m/request.log
๐ Experimental options
Experimental options might change in the future or even be removed. Feedback to the author is highly welcome. (they're literally asking for your opinion, bestie ๐ซถ)
-Rโ restore session-cookie-jar fileโ use file instead of the default cookie file-session fileโ use file instead of the default session file
๐ Session management ๐
If -R is given, w3m will restore a session from a session file. If no session file is provided with -session the default session file is used. The default session file will be deleted after restoring a session when exiting w3m. If a session file is given it will not be deleted. If URLs or files were given as parameters they will be loaded after restoring the session and added to the first tab. If -N and -R are given the old session is restored as is and any new buffer are opened in separate tabs.
Note: Session management is still an experimental feature and might change in the future! so don't come for me if it shifts ๐
๐ EXAMPLES ๐
๐ Pager-like usage
Combine snippets of HTML code and preview the page
$ cat header.html footer.html | w3m -T text/html
Compare two files using tabs
$ w3m -N config.old config
๐ฅ Browser-like usage
Display web content in monochrome terminal
$ w3m -M http://w3m.sourceforge.net
Display embedded graphics
$ w3m -o auto_image=TRUE http://w3m.sourceforge.net
Display content from Usenet
$ w3m -m nntp://news.aioe.org/comp.os.linux.networking
Upload data for a URL using the POST method
$ w3m -post - http://example.com/form.php <<<'a=0&b=1'
๐ Filter-like usage
Convert an HTML file to plain text with a defined line length
$ w3m -cols 40 foo.html > foo.txt
Output the bookmarks page as text with an appended list of links
$ w3m -B -o display_link_number=1 > out.txt
Conversion of file format and character encoding
$ w3m -T text/html -I EUC-JP -O UTF-8 < foo.html > foo.txt
๐ง Start with no input
Welcome users with a built-in page
$ w3m -v
๐ฆ ENVIRONMENT ๐ฆ
w3m recognises the environment variable WWW_HOME as defining a fallback target for use if it is invoked without one.
If the W3M_DIR environment variable is set to a directory name, w3m will store its user files there instead of under the ~/.w3m directory.
๐ FILES ๐
The default locations of some files are listed below. These locations can be altered via the W3M_DIR environment variable.
~/.w3m/bookmark.htmlโ default bookmark file~/.w3m/configโ user defined configuration file; overrides/etc/w3m/config~/.w3m/cookieโ cookie jar; written on exit, read on launch~/.w3m/historyโ browser history - visited files and URLs~/.w3m/keymapโ user defined key bindings; overrides default key bindings~/.w3m/mailcapโ external viewer configuration file~/.w3m/menuโ user defined menu; overrides default menu~/.w3m/mime.typesโ MIME types file~/.w3m/mouseโ user defined mouse settings~/.w3m/passwdโ password and username file~/.w3m/pre_formโ contains predefined values to fill recurrent HTML forms
โญ SEE ALSO โญ
README and example files are to be found in the doc directory of your w3m installation. Recent information about w3m may be found on the project's web pages at https://w3m-pager.org
๐ ACKNOWLEDGMENTS ๐
w3m has incorporated code from several sources. Users have contributed patches and suggestions over time. we love a community effort ๐ซถ
๐ AUTHOR ๐
Akinori ITO, and others. This version is maintained by Rene Kita <mail@rkta.de>. Use <~rkta/w3m@lists.sr.ht> to contact the developers.
and that's the whole page, bestie ๐
this was w3m version 0.5.6, dated 2025-06-07 โ go forth and browse in text mode, you absolute icon โจ๐ฆ๐
๐ฆ where this page comes from
- alpine 3.24: w3m-doc 0.5.6-r0 ยท MIT
- arch rolling: w3m 0.5.6-1 ยท LicenseRef-w3m
- nixos 26.05: w3m 0.5.6
- nixpkgs unstable: w3m 0.5.6
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms