How to find the license file or information used by the IDE

The active license can be observed in the Help | Register dialog or Register link at the bottom of the product Welcome Screen (when there is no project open).

License itself is stored in the <product><version>.key file under the IDE configuration directory.

When using JetBrains Account or the new offline activation key, information is encrypted and is stored in the system registry, therefore there is no way to access it for the end user.

Please note that this file has UCS2 (2-byte Unicode) encoding and you can't view it in basic editors like Notepad, you need to open it in some Unicode-aware editor if you goal is to find the user name and the key. First line contains the key, second line contains user name.


We have a classroom license for WebStorm and I'd like to install it for all users on our computer lab systems so that all of our students can use it.  With IntelliJ IDEA, all I had to do was copy the license file to bin/idea.license of the IntelliJ installation directory, and it picked up the license without each user having to have a license file installed in his/her home directory.

Is the same possible with WebStorm?  I tried copying the webstorm60.key to bin/webstorm60.license, bin/webstorm.license, bin/idea.license, etc., but it still asked me for a license key each time I opened WebStorm.  Upon running WebStorm through strace, it doesn't appear that it is even looking for any license files other than in ~/.WebStorm6/config.

Please advise.  Thank you.


Jeff, it's not possible with WebStorm, you have to use the License Server or install the the license manually for every user.

Contact the sales team for more details about the License Server.


Too bad.  Thanks for the quick response.


The referenced file appears to Win7 as a registry key file.  You can open it in Notepad.  The formatting is whacked, but it is displayed as plain text.  SciTE opens it with all the NUL characters visible.  SublimeText 2 opens it as hex, because of the NUL characters.  Since ST doesn't have a hex editor, you can't change it back to characters.  The only editor I found that would properly handle it is UltraEdit.  Set the encoding to  UTF-16LE and the text is properly formatted.  IMO, this is fairly whacked, since an "upgrade" consists of uninstalling the old version and then installing a new copy of the new version.  Registration is not preserved, so the user is left to reenter the license key.  A legitimate upgrade should carry forward the licensing information.


osx:  no file matching <product><version>.key in the ~/Library/Preferences directory.

LicenseID listed in Toolbox Subscriptions is something like: KMQPPEQQ577 - where can one find matching key in OSX?


There is no .key file if you have registered via your JetBrains account. The key is not stored on the machine, a ticket is obtained from the JetBrains server and is stored in the registry and is refreshed periodically.


How could we get a key to activate command-line based PhpStorm instance? We'd like to automate inspection results using bin/ script. The question now is how to activate the licence as we cannot copy the file (it's not in the host machine). It's also problematic to run GUI as we don't want to have it there.

Is it possible to activate somehow using MacOS to have the file available? I had activated it using account, then removed the licence and provided the licence key – either way I cannot find any licence file in configuration directory.


License data is no longer stored in the .key file, Java Registry is used for that instead. It stores the cached auth tokens.

Java Registry is inside `~/Library//Preferences/` on Mac.


Ok, thanks. Where's it stored in Linux? We're thinking of integrating it inside docker container – we could even set it up with GUI, but we need to know which files to keep there. We're thinking of basing the image on alpine, unless this makes some problems with the registry.


I've tried to clear `~/.java/.userPrefs` entirely, restart the PhpStorm and input the credentials. Afterwards, after closing PhpStorm, copied the files to be available in linux container. I'm trying to run bin/ there. I get `No valid license found` error.

What could cause this? I have the same files inside the container (~/.java/.userPrefs). Do the tokens depend on the system (maybe just copying them to another system would not work somehow)?

I've also quit all PhpStorm processes in the host, but it's the same.


It appears you cannot transfer the registration performed via JetBrains Account method from one system to another. You should use the offline activation code instead and share the .key file or use the local license server with the automatic discovery.


Please sign in to leave a comment.

Have more questions?

Submit a request