{
    "mode": "man",
    "parameter": "base32",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/base32/1/json",
    "generated": "2026-06-10T16:10:42Z",
    "synopsis": "base32 [OPTION]... [FILE]",
    "sections": {
        "NAME": {
            "content": "base32 - base32 encode/decode data and print to standard output\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "base32 [OPTION]... [FILE]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Base32 encode or decode FILE, or standard input, to standard output.\n\nWith no FILE, or when FILE is -, read standard input.\n\nMandatory arguments to long options are mandatory for short options too.\n",
            "subsections": [
                {
                    "name": "-d --decode",
                    "content": "decode data\n",
                    "flag": "-d",
                    "long": "--decode"
                },
                {
                    "name": "-i --ignore-garbage",
                    "content": "when decoding, ignore non-alphabet characters\n",
                    "flag": "-i",
                    "long": "--ignore-garbage"
                },
                {
                    "name": "-w --wrap",
                    "content": "wrap encoded lines after COLS character (default 76).  Use 0 to disable line wrapping\n\n--help display this help and exit\n",
                    "flag": "-w",
                    "long": "--wrap"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n\nThe  data  are  encoded as described for the base32 alphabet in RFC 4648.  When decoding, the\ninput may contain newlines in addition to the bytes of the formal base32 alphabet.  Use --ig‐‐\nnore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream.\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Simon Josefsson.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright  ©  2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later\n<https://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Full documentation <https://www.gnu.org/software/coreutils/base32>\nor available locally via: info '(coreutils) base32 invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                   BASE32(1)",
            "subsections": []
        }
    },
    "summary": "base32 - base32 encode/decode data and print to standard output",
    "flags": [
        {
            "flag": "-d",
            "long": "--decode",
            "arg": null,
            "description": "decode data"
        },
        {
            "flag": "-i",
            "long": "--ignore-garbage",
            "arg": null,
            "description": "when decoding, ignore non-alphabet characters"
        },
        {
            "flag": "-w",
            "long": "--wrap",
            "arg": null,
            "description": "wrap encoded lines after COLS character (default 76). Use 0 to disable line wrapping --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit The data are encoded as described for the base32 alphabet in RFC 4648. When decoding, the input may contain newlines in addition to the bytes of the formal base32 alphabet. Use --ig‐‐ nore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream."
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Encode or decode file or `stdin` to/from Base32, to `stdout`.",
        "examples": [
            {
                "description": "Encode a file",
                "command": "base32 {{path/to/file}}"
            },
            {
                "description": "Wrap encoded output at a specific width (`0` disables wrapping)",
                "command": "base32 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}"
            },
            {
                "description": "Decode a file",
                "command": "base32 {{-d|--decode}} {{path/to/file}}"
            },
            {
                "description": "Encode from `stdin`",
                "command": "{{command}} | base32"
            },
            {
                "description": "Decode from `stdin`",
                "command": "{{command}} | base32 {{-d|--decode}}"
            }
        ]
    }
}