About the Encoder API

API Version: 1.9

The Encoder allows you to encode and decode using URL encoding, Base64, and Base64 URL.

This is the API for the Encoder.

Endpoints

GET
https://networkcalc.com/api/encoder/{value}

Encode or decode a value

. Encodes or decodes a value.

Parameters

{value}

The value to encode or decode

Example: https://networkcalc.com/api/encoder/Test value to encode.

encoding

The encoding scheme to use.

Values: url,base64,base64url

Example: https://networkcalc.com/api/encoder/base64

decode

(Optional) Set this to true to decode instead of encode.

Values: true,1

Example: https://networkcalc.com/api/encoder/VGhpcyBpcyBhIHRlc3Qh?encoding=base64&decode=true

Response Codes

200
OK - Success.
400
NOT_ENCODED - The {value} could not be encoded. Check all parameters and try again.
400
NOT_DECODED - The {value} could not be decoded. Check all parameters and try again.

Response Formats

EncoderResponse

{
  "status": "[string] The status of the request.",
  "original": "[string] The original value given in the request. If passed as a URL-encoded string, this field will contain the original value without URL encoding.",
  "encoded|decoded": "[string] The result of encoding or decoding the original value."
}