Plugin Sale! Save 15% on pro plugins with discount code: NEWYEAR2021
Web Dev + WordPress + Security

How to Edit the Firefox Custom Dictionary

[ Firefox ] As one who takes full advantage of the custom dictionary in Firefox, I occasionally find myself adding nonexistent or misspelled words to the dictionary by accident. Not wanting to deal with a false negative down the road, I always take the time to stop what I’m doing, locate the custom dictionary, and remove the erroneous term. Finally getting sick of trying to remember the esoteric location in which Firefox stores the personal dictionary, I decided to make a few notes and post the information here for easy access when it happens again.. and it will happen again, there is no doubt ;)

Oooops! Didn’t really mean to add that particular word to the Firefox custom dictionary. Better remove it now before it causes problems later on..

Turns out that the location of the custom dictionary varies depending on your operating system. The name of the custom dictionary is “persdict.dat” (short for “personal dictionary”), and is located in the following location (depending on operating system):

Windows Vista

C:\users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[unique-alphanumeric-string].default\persdict.dat

Windows XP

C:\Documents and Settings\[username]\ApplicationData\Mozilla\Firefox\Profiles\[unique-alphanumeric-string].default\persdict.dat

Mac OS X

~/Library/Application Support/Firefox/Profiles/[unique-alphanumeric-string].default/persdict.dat

Linux

~/.mozilla/firefox/[unique-alphanumeric-string].default/persdict.dat

Of course, the [username] (for Windows) and [unique-alphanumeric-string] will vary depending on your unique configuration. Once you have located the target file, “persdict.dat”, open it with a text editor and edit according to your needs. The file itself is simply a list of words that you have chosen to add to the dictionary by right-clicking in Firefox and selecting “Add to dictionary”. With this file, you can add as many custom words as you like, or, conversely, remove all those nefarious little rascals that you added by accident! Save, close, and done. Even so, why hasn’t somebody written an official “custom dictionary editor” extension for Firefox? Would be so nice!

Jeff Starr
About the Author
Jeff Starr = Fullstack Developer. Book Author. Teacher. Human Being.
WP Themes In Depth: Build and sell awesome WordPress themes.

11 responses to “How to Edit the Firefox Custom Dictionary”

  1. Hi Perishable.

    I think that this hack (or trick or tweak or whatever you’d like to call it) fits with mine :)

    I don’t like spam :) but this arcticle reminds me my “Custom Firefox favicon bookmark toolbar” that you can find here.

    I’d like to think (and tell me if it’s so) you’re just read it.

    :)

  2. Jeff Starr
    Perishable 2008/04/15 9:54 am

    Yes, I read your article, and it is very good. It seems like a very useful technique. I think I will experiment with it a bit and examine the results (just as soon as I can find the time!;) Thanks for sharing it with us! :)

  3. Hey
    thanks for the tip but i tried to change to words in the persdict.dat file and then saving the file. but it doesn’t work. when i open the file after using the dictionary once the old words are back, and the new ones have disappeared!

  4. AH! sorry for previous comment! I just realised that I had forgotten to close down Firefox when I was changing the file!
    Thanks for the tip :-) It does work!

  5. I just was asking for that! :)

  6. Jeff Starr
    Jeff Starr 2008/08/03 7:52 am

    Thanks for the update, me! Glad to hear you got it working :)

  7. I don’t have that file on my computer, i’m using xp and i know my way around computers, i searched for it by name and still couldn’t find it, I also looked in every available profile setting (Admin, All Users, etc…) and it’s nowhere to be found… I use the built in dictionary constantly, so could the file be named something different?

  8. Jeff Starr
    Jeff Starr 2009/03/16 9:44 am

    Hi matt, as far as I know, persdict.dat is the standard name for the dictionary file on XP. If a thorough search does not return any results, then something may have been customized, overwritten, or otherwise modified by another program. You may want to check around at the Mozilla Firefox forums and maybe ask if anyone has any ideas.

  9. Simon Field 2009/05/11 6:45 am

    Thanks for that – I’m forever hitting the “Add to Dictionary” option by accident, and didn’t feel like trawling through the ApplicationData for myself.

  10. Jeff Starr

    Absolutely my pleasure, Simon. That’s exactly why I posted this article — I am always clicking the wrong button as well and got tired of trying to remember the location of the custom dictionary. Another thing that I did to make it even easier and save more time is create a shortcut to the dictionary file itself. Now I am good to go with a single click!

  11. Thank you so much for this! It helps a ton.

Comments are closed for this post. Something to add? Let me know.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
GA Pro: Add Google Analytics to WordPress like a pro.
Thoughts
Simply Static is my go-to plugin for generating static HTML versions of WordPress sites. Works flawlessly.
Note to self: never, ever, ever buy any CD or DVD from eBay. Every single time the discs are scratched, damaged, missing, fake, or worse. Never again you clowns.
Find out if a plugin works with the latest version of WordPress @ plugintests.com
Going through all of my data, deleting all the chaff. Going for less than 500 GB total data storage.
Finally deleted all the cool unused placeholder Twitter accounts that I signed up for years ago. I will never use them.
After several years with Dashlane, I've moved on to a simpler, better solution.
After 10+ years, finally moved the last of my sites away from Media Temple.
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.