---
name: "roff2text"
section: "1"
platform: "linux"
package: "groff"
version: "1.22.4-10"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/roff2text"
---

# roff2text(1)

transform roff code into text mode

## NAME

roff2text - transform roff code into text mode

## SYNOPSIS

**roff2text** \[*groffer-option* ...\] \[**--**\] \[*filespec* ...\]

**roff2text** **-h**

**roff2text** **--help**

**roff2text** **-v**

**roff2text** **--version**

The options **-v** and **--version** print the version information of the program to standard output and exit. The options **-h** and **--help** print a usage information of the program to standard output and stop the program instantly.

All other options are assumed to be **groffer** options. They are internally passed to **groffer**. They override the behavior of the program. The options are optional, they can be omitted.

The *filespec* arguments correspond to the *filespec* arguments of **groffer**. So they are either the names of existing, readable files or **-** for standard input, or the name of a man page or a [**groffer**(1)](/groffer/1.md) man page search pattern. If no *filespec* is specified standard input is assumed automatically.

## DESCRIPTION

**roff2text** transforms *roff* code into *text* mode. Print the result to standard output.

There are more of these programs for generating other formats of *roff* input.

- [**roff2dvi**(1)](/roff2dvi/1.md)

  is for *dvi* mode.

- [**roff2html**(1)](/roff2html/1.md)

  generates *HTML* output.

- [**roff2pdf**(1)](/roff2pdf/1.md)

  outputs *pdf* mode.

- [**roff2ps**(1)](/roff2ps/1.md)

  prints *PostScript* format to standard output.

- [**roff2x**(1)](/roff2x/1.md)

  prints the output in the **groff** device **X** that is suitable for programs like [**gxditview**(1)](/gxditview/1.md) or [**xditview**(1)](/xditview/1.md).

## AUTHORS

**roff2text** was written by Bernd Warken ⟨groff\\-bernd.warken\\-72@\\:web.de⟩.

## SEE ALSO

[**groff**(1)](/groff/1.md), [**groffer**(1)](/groffer/1.md), [**roff2dvi**(1)](/roff2dvi/1.md), [**roff2html**(1)](/roff2html/1.md), [**roff2pdf**(1)](/roff2pdf/1.md), [**roff2ps**(1)](/roff2ps/1.md), [**roff2x**(1)](/roff2x/1.md), [**gxditview**(1)](/gxditview/1.md).
