base64

Encode or decode a base64 string

Description

An optional builtin to encode or decode a base64 string.

Usage

<stdin> -> base64 -> <stdout>

<stdin> -> !base64 -> <stdout>

Examples

Encode base64 string

» out "Hello, World!" -> base64
SGVsbG8sIFdvcmxkIQo=

Decode base64 string

» out "SGVsbG8sIFdvcmxkIQo=" -> !base64
Hello, World!

Detail

base64 is very simplistic - particularly when compared to its GNU coreutil (for example) counterpart. If you want to use the base64 binary on Linux or similar platforms then you will need to launch with the exec builtin:

» out "Hello, World!" -> exec base64
SGVsbG8sIFdvcmxkIQo=

» out "SGVsbG8sIFdvcmxkIQo=" -> exec base64 -d
Hello, World!

However for simple tasks this builtin will out perform external tools because it doesn’t require the OS fork processes.

Synonyms

See Also


This document was generated from builtins/optional/encoders/base64_doc.yaml.

This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Wed Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.

Current version is 7.0.2107 (develop) which has been verified against tests cases.