base.decode
0.000001

Decodes a string from a base.

Arguments
baserequired
The base to decode from.
Return Value
The decoded string.
something went wrong :(
Decoding a base64-encoded string
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.base.decode.call("aGVsbG8=\n", base: "64")
client.base.decode.call("aGVsbG8=\n", {base: "64"});
curl "https://proc.run/base/decode?base=64" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain" \
--data "aGVsbG8=\n"
 

hello

Supported Bases

64 RFC 2045 compliant base64 encoding.
64U RFC 2045 compliant url-safe base64 encoding, without padding.

Stuck? Want to chat about an idea? Join the community on Discord.