Is there a way to set a payment id as a regular message instead of random characters? What format does it have to follow?

2 Answers 2


It is just hex characters, so you can use a tool like this to convert it to ascii.

  • 1
    why didnt they just make it ascii instead of hex? Commented Sep 28, 2017 at 18:34
  • As user36303 mentions in their answer, it's generally random, so a number works fine.
    – jwinterm
    Commented Sep 30, 2017 at 2:56

The payment ID is arbitrary. If you want to use text, you are free to do so. A common use is to use a hash or some data, or some random number, which is why most look random, but they do not have to be. Indeed, some are definitely text looking. You are limited to 256 bits, however (64 characters in normal ASCII encoding).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.