GO(golang) : base64.StdEncoding.DecodeString()

Decodes the given Base64-encoded string s and returns the corresponding byte array. If decoding fails, an error is returned.


Function

func (enc *Encoding) DecodeString(str string) ([]byte, error)

Parameters

string - The Base64-encoded data.

Return value

`DecodeString` returns the byte array represented by the Base64-encoded string `string`.

Example

package main

import (
    "encoding/base64"
    "fmt"
)

func main() {
    data := "SSB3aWxsIGNvbWUgYmFjayBzb29u"
    decoded, _ := base64.StdEncoding.DecodeString(data)
    fmt.Println(string(decoded))
}

Home Page Base64Decode List Privacy Policy About Us Contact

This website uses cookies to enhance your experience, personalize content and ads, and analyze our traffic.

©2025 Design by base64decodeonl.com