Base64 Encode & Decode - Convert Data Online | Online Free DevTools by Hexmos
Encode and decode data with Base64. Securely transform information for transmission or storage, online and free. Free online tool, no registration required.
base64
Encode or decode file or
stdin
to/from base64, tostdout
or another file. More information: https://man.freebsd.org/cgi/man.cgi?query=base64.
- 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
tostdout
:
{{command}} | base64
- Decode from
stdin
tostdout
:
{{command}} | base64 {{[-d|--decode]}}