# How do you generate your keys?

**URL:** https://discourse.jabref.org/t/how-do-you-generate-your-keys/403
**Category:** Help
**Created:** [December 30, 2016, 8:26am UTC](https://discourse.jabref.org/t/how-do-you-generate-your-keys/403 "2016-12-30T08:26:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![buhtz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/buhtz/32/372_2.png) [@buhtz](https://discourse.jabref.org/u/buhtz)
#### Post date: [December 30, 2016, 8:26am UTC](https://discourse.jabref.org/t/how-do-you-generate-your-keys/403/1 "2016-12-30T08:26:50Z")

</div>

This question isn’t about technical details. My goal is to know and learn more about how other JabRef users use the software.

When starting JabRef telling me there are entries with missing bibtex-keys. I nearly understand why it is important for JabRef to have a key for each entrie. This entries are websites importat from a RIS-file (exported from Zotero). The import dialog wasn’t able to generate keys by default.

There is no key-generate-rule for that kind of entries. No author and no year available - no key. I understand that. But shouldn’t there be a default behaviour for this? A fallback key-generateing-rule?

Which rules do you use for your different kinds of entries?

---

<div class="post-metadata">

### Author: ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)
#### Post date: [December 30, 2016, 5:38pm UTC](https://discourse.jabref.org/t/how-do-you-generate-your-keys/403/2 "2016-12-30T17:38:09Z")

</div>

Well, this usually depends on your citation style.  
However, you can provide a key-generation style for each kind of entry. So you could define an entry which takes a part of the URL or the title as key. You can enter this in the Preferences-\> BibTex key generator

Additionally, the help page for the Key-Patterns explains the possibilities:  
[https://help.jabref.org/en/BibtexKeyPatterns](https://help.jabref.org/en/BibtexKeyPatterns)

I personally use author-year style, because I use APA style and it requires author/year also for websites.

Regards  
Christoph

---

<div class="post-metadata">

### Author: ![mlep](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/mlep/32/387_2.png) [@mlep](https://discourse.jabref.org/u/mlep)
#### Post date: [January 2, 2017, 10:50am UTC](https://discourse.jabref.org/t/how-do-you-generate-your-keys/403/3 "2017-01-02T10:50:31Z")

</div>

Most of users use the default key pattern (author-year). However, using the title is not uncommon.  
See [https://www.jabref.org/surveys/2015/analysis](https://www.jabref.org/surveys/2015/analysis) , section “The default key pattern is ok, but the use of another pattern is common”.
