---
title: Utility
description: Convert public keys and signatures between hex and Thru formats
source_url:
  html: https://thru.org/docs/cli-reference/utility-commands/
  md: https://thru.org/docs/cli-reference/utility-commands.md
---

# Utility

Use `thru util` for pure format conversion tasks.

## Commands

| Command | Use it for |
| - | - |
| `convert pubkey hex-to-thrufmt <hex_pubkey>` | Convert a hex public key to `ta...` format. |
| `convert pubkey thrufmt-to-hex <thrufmt_pubkey>` | Convert a `ta...` address to hex. |
| `convert signature hex-to-thrufmt <hex_signature>` | Convert a hex signature to `ts...` format. |
| `convert signature thrufmt-to-hex <thrufmt_signature>` | Convert a `ts...` signature to hex. |

## Minimal Pattern

```bash
thru util convert pubkey hex-to-thrufmt 0123...
thru util convert signature thrufmt-to-hex ts...
```

## Notes

- This family is read-only and local.
- Reach for it whenever another command requires `ta...` or `ts...` formatting and you only have hex.
