Skip to content

decodeBase64

Decode a Base64 encoded string.

Usage

js
import { decodeBase64 } from 'js-cool'

Signature

typescript
function decodeBase64(input: string): string

Parameters

ParameterTypeDescription
inputstringThe Base64 string to decode

Returns

string - The decoded string.

Examples

js
decodeBase64('SGVsbG8gV29ybGQ=') // 'Hello World'
decodeBase64('5L2g5aW9') // '你好'

Released under the MIT License.