TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Decode a base64 string

GEThttps://api.testingapis.com/api/utils/base64/decodeSign in to see this endpoint's URL

If the decoded bytes are not valid UTF-8, decoded is null and hex holds the bytes.

Parameters 1

NameTypeDescription
valuequery · stringStandard or URL-safe base64, with or without padding. Send + as %2B in the query string. Default: "".

Responses

200
Success.
400
value is not valid base64.

Example

Request
curl -X GET "https://api.testingapis.com/api/utils/base64/decode?value=aGVsbG8gd29ybGQ%3D" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "input": "aGVsbG8gd29ybGQ=",
  "decoded": "hello world",
  "isUtf8": true,
  "hex": "68656c6c6f20776f726c64",
  "length": 11
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.