# Generating a token which is only 37 characters

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgenerating-a-token-which-is-only-37-characters%2F138775%3E%5C
**Category:** Beginners\
**Created:** [February 3, 2025, 4:11pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgenerating-a-token-which-is-only-37-characters%2F138775 "2025-02-03T16:11:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angshuk58](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/angshuk58/32/40314_2.png) [@Angshuk58](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAngshuk58)%5C
**Post date:** [February 3, 2025, 4:11pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgenerating-a-token-which-is-only-37-characters%2F138775%2F1 "2025-02-03T16:11:20Z")

</div>

I am trying to create a new token, however it is generating token which is only 37 characters instead of 40

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [February 3, 2025, 4:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgenerating-a-token-which-is-only-37-characters%2F138775%2F2 "2025-02-03T16:25:27Z")

</div>

Can you produce the minimum code fragment? Be careful not to write any tokens.

---

<div class="post-metadata">

**Author:** ![AdemYengui](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ademyengui/32/53099_2.png) [@AdemYengui](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAdemYengui)%5C
**Post date:** [August 26, 2025, 5:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgenerating-a-token-which-is-only-37-characters%2F138775%2F3 "2025-08-26T17:27:32Z")

</div>

i’m facing the same problem, did u find a solution ?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [August 26, 2025, 10:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgenerating-a-token-which-is-only-37-characters%2F138775%2F4 "2025-08-26T22:54:05Z")

</div>

HF tokens don’t seem to have a fixed length. They’re **generally around 34 to 40 characters**. [To verify whether a token is valid, using `whoami-v2` is the most reliable method](https://stackoverflow.com/questions/72289714/how-to-validate-hugging-face-organization-token/72297034).
