I would like to add strings into bytes32. What is the maximum number of letters bytes32 can have?


Each bytes32 can store up to 32 letters (ASCII): each character is a byte.

| improve this answer | |
  • How about UTF-8? – Satoshi Nakanishi Jul 1 '16 at 13:36
  • Same answer 32: the first 128 characters of UTF-8 correspond one-to-one with ASCII, which is where the usual letters and numbers are. – eth Jul 1 '16 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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