Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 3.07 KB

base64.md

File metadata and controls

55 lines (42 loc) · 3.07 KB
layout title description content_hash last_modified_at related_topics tldri18n_status
page
osx/base64 (English)
Encode or decode file or `stdin` to/from base64, to `stdout` or another file.
b1162b7a5ab0bad7390b2e0b113aec630e38da8d
2024-10-12
title url icon
español version
/es/osx/base64.html
bi bi-globe
title url icon
हिन्दी version
/hi/osx/base64.html
bi bi-globe
title url icon
italiano version
/it/osx/base64.html
bi bi-globe
title url icon
Nederlands version
/nl/osx/base64.html
bi bi-globe
title url icon
português (Brasil) version
/pt_BR/osx/base64.html
bi bi-globe
title url icon
中文 version
/zh/osx/base64.html
bi bi-globe
2

base64

Encode or decode file or stdin to/from base64, to stdout or another file. More information: https://keith.github.io/xcode-man-pages/base64.1.html.

  • Encode a file to stdout:

base64 -i|--input path/to/file

  • Encode a file to the specified output file:

base64 -i|--input path/to/input_file -o|--output path/to/output_file

  • Wrap encoded output at a specific width (0 disables wrapping):

base64 -b|--break 0|76|... path/to/file

  • Decode a file to stdout:

base64 -d|--decode -i|--input path/to/file

  • Encode from stdin to stdout:

command | base64

  • Decode from stdin to stdout:

command| base64-d|--decode