# .decodeBin()

## Description

decodeBin converts a space-separated binary string (created by encodeBin) back into its original text representation.

## Parameters

decodeBin takes no parameters.

## Usage On Strings

```javascript
// Basic binary decoding
binStr = "1101000 1100101 1101100 1101100 1101111"
log binStr.decodeBin()
// "hello"

// Works with spaces
binStr = "1101000 1100101 1101100 1101100 1101111 100000 1110111 1101111 1110010 1101100 1100100"
log binStr.decodeBin()
// "hello world"

// Single character
binStr = "1000001"
log binStr.decodeBin()
// "A"

// Encode and decode round trip
original = "hello world"
encoded = original.encodeBin()
decoded = encoded.decodeBin()
log decoded
// "hello world"

// Empty string handling
log "".decodeBin()
// ""
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osl.mistium.com/methods/strings/encoding/.decodebin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
