# HexStrings

## HexStrings

### Functions[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/HexStrings#functions) <a href="#functions" id="functions"></a>

#### toHexString[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/HexStrings#tohexstring) <a href="#tohexstring" id="tohexstring"></a>

```solidity
  function toHexString(
  ) internal returns (string)
```

Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.

Credit to Open Zeppelin under MIT license <https://github.com/OpenZeppelin/openzeppelin-contracts/blob/243adff49ce1700e0ecb99fe522fb16cff1d1ddc/contracts/utils/Strings.sol#L55>

#### toHexStringNoPrefix[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/HexStrings#tohexstringnoprefix) <a href="#tohexstringnoprefix" id="tohexstringnoprefix"></a>

```solidity
  function toHexStringNoPrefix(
  ) internal returns (string)
```
