String Tools

This online utility is primarily intended to help people in converting or calculating strings to different modes.

Choose functions, put you text you want to convert and click "Submit" button.

String Tools API Documentation

You sould know available functions before you can use Online String Tools API.

Function Name Description
base64_encode Base64 Encoder Encode given string to Base64
urlencode URI Encode Encoding a string to be used in a query part of a URL.
full_urlencode Full Urlencode Like URI Encode functions, but its encode all the given strings.
html_numeric HTML Numeric Convert to HTML nummeric.
cssCompress CSS Minify Compress / Minify CSS.
jsminify JavaScript Minify Compress / Minify JavaScript.
jspackerbase62 JavaScript Base62 Packer Base62 JavaScript compressor / packer by Dean Edwards.
base64_decode Base64 Decode Decode Base64 string to plain text.
gzinflatebase64decode Gzinflate Base64 Decode Inflate a deflated Base64 string.
gzuncompressbase64decode Gzuncompress Base64 Decode Uncompress a compressed Base64 string.
urldecode URI Decode Decodes URL-encoded string.
crc32 CRC32 Calculates the crc32 polynomial of a string.
md5 MD5 Hash Function Calculate the md5 hash of a string.
sha1 SHA1 Hash Function Calculate the sha1 hash of a string. [Warning] (deprecated)
ascii2hex ASCII to HEX ASCII text to hexadecimal converter, helps you to encode ASCII text to hex.
hex2ascii HEX to ASCII Hexadecimal to ASCII converter, helps you to convert Hex to ASCII.
hexdec HEX to DEC Hexadecimal to decimal converter, helps you to convert hex to decimal.
dechex DEC to HEX Decimal to hexadecimal converter, helps you to convert dec to hex.
decbin DEC to BIN Decimal to binary converter, helps you to convert dec to bin.
binhex BIN to HEX Binary to hexadecimal converter, helps you to convert bin to hex.
bindec BIN to DEC Binary to decimal converter, helps you to convert bin to dec.
strlen String Length Get string length.
uppercase Uppercase Returns string with all alphabetic characters converted to uppercase.
strtolower Lowercase Returns string with all alphabetic characters converted to lowercase.
devilzc0deStyle Devilzc0de Style Reverse words of given string.
strrev Reverse String Reverse a string.
nato NATO Phonetic Alphabet The International Radiotelephony Spelling Alphabet.

Or you can fetch list of available functions via GET request to :

GET https://www.ditatompel.com/api/string-tools

Example results :

{
  "respond": 200,
  "status": "success",
  "results": [
    {
      "function": "base64_encode",
      "description": "Base64 Encode"
    },
    {
      "function": "urlencode",
      "description": "URI Encode"
    },
    {
      "function": "full_urlencode",
      "description": "Full Urlencode"
    },
    [ETC...]
  ]
}

Main Request

This endpoint returns a converted text.

POST https://www.ditatompel.com/api/string-tools/[THE_FUNCTION]

Parameter

These parameters should be in the query string.

[THE_FUNCTION] string Required. Function you want to use from available functions above.
string string Required. Param key 'string' is the string you want to convert.

Response Header

The response header includes the HTTP status code and the content type. Clients that receive a status code other than HTTP/200 must back-off.

HTTP 200 No Error
Content-Type: application/json

Response Body

The response body includes the information of convertion status and converted string. Example of result :

{
  "respond": 200,
  "status": "success",
  "result": "VGhpcyBpcyBhbiBleGFtcGxlIG9mIGdpdmVuIHN0cmluZw=="
}