Edit Firefox’s Spelling Dictionary

If you have used Firefox’s built in dictionary, you will know there is a limitation to it. Firefox allows you to easily add words to dictionary, but lacks a user interface for removing words. This can be a problem since the “Add to dictionary” button is directly under the corrected words, providing easy access for adding misspelled words to the dictionary.

Since I frequently add misspelled words, I had to learn the method for removing these words. To remove misspelled words, first close down Firefox then navigate to your profile folder. The folder’s location varies depending on your operating system:

Windows XP

C:\Documents and Settings\[User Name]\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\

Windows Vista

C:\users\[User Name]\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default\

Mac OS X

~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/

Linux

~/.mozilla/firefox/xxxxxxxx.default/

Once in your profile folder, look for a file named persdict.dat, and open it with your favorite text editor. Inside you’ll find all of your custom defined words, each on their own line. Just delete the words which don’t belong and save. Firefox will no longer incorrectly identify those misspelled words as correct.

52 Comments

  1. 1 Jonathan on Mar 8, 2007 at 8:35 pm (Quote):

    Neat trick. Maybe knowing this can help make a plug-in?

  2. 2 Stephen on Apr 8, 2007 at 5:13 pm (Quote):

    Thanks for this one. I accidentally added a word to the dictionary that didn’t belong. I really need to watch my click happy finger.

  3. 3 firefox user on Apr 17, 2007 at 3:47 am (Quote):

    Thanks!

  4. 4 Amir D on Apr 22, 2007 at 4:19 pm (Quote):

    Hi,

    I’m running OS 10.4.9 and only have a Mozilla folder inside the library folder which contains the file pkcs11.shlb and nothing else… any ideas?

    Thanks a lot,

  5. 5 Ronald Heft on Apr 22, 2007 at 4:37 pm (Quote):

    Amir, you should be looking for a Firefox folder, not a Mozilla folder.

  6. 6 Amir D on Apr 23, 2007 at 4:07 am (Quote):

    Thanks for the quick reply.

    Trust me, I did. There’s no Firefox folder inside the Application Support folder. I’m more than happy to provide a screenshot ;)

  7. 7 Ronald Heft on Apr 23, 2007 at 7:49 am (Quote):

    You’re looking in your user folder and not the system Application Support, correct?

  8. 8 Amir D on Apr 23, 2007 at 2:08 pm (Quote):

    ooops ;) that did it. Thanks a lot!

  9. 9 Crystal on Apr 25, 2007 at 9:07 am (Quote):

    THANK YOU!!! Man, I click the wrong damn line all the time and am constantly frustrated by the inability to remove those new wrong words from my dictionary!

  10. 10 Ronald Heft on Apr 25, 2007 at 10:26 am (Quote):

    Glad I could help Crystal.

  11. 11 Jeremy on May 1, 2007 at 2:16 pm (Quote):

    Thank you! That was very helpful

  12. 12 Chris Ashley on May 4, 2007 at 2:52 am (Quote):

    Your instructions worked for Windows 2003 as well.

    Thanks for the help.

  13. 13 Brad on May 16, 2007 at 10:49 pm (Quote):

    Thanks a bunch, I was doing a search for a couple of days to try and find a solution for this, I went to correct word which I’d misspelled, I type in rush so at times tend to invert letters like “soemthing” and dang it, I added it

  14. 14 Nobody on Jun 2, 2007 at 6:36 pm (Quote):

    Very helpful, thanks.

  15. 15 Aunty Nomus on Jun 4, 2007 at 2:10 am (Quote):

    THANKYOU!

    I’ve been *way* too click happy and have quite an almost useless dictionary. This will help a *lot*. ^_^

    What we need now is a plugin to move that evil add button somewhere else, or maybe the Mozilla folks can read this and learn what a pain in the posterior it is now.

  16. 16 Will R on Jun 7, 2007 at 10:36 am (Quote):

    Thanks a million! Awesome! Brilliant! Superb!

    I’d added my first wrong word just the other day and had searched through the options within Firefox to try to undo it. Now 5 mins on internet looking how to fix it, or a new easier-to-use dictionary and I find the solution. Great Stuff!

    I agree with “Aunty Nomus” we do need a plugin to move that evil add button somewhere else.

  17. 17 Bill on Jun 14, 2007 at 8:47 am (Quote):

    Thanks for the tutorial. FYI: You might need to close & reopen Firefox before you see the custom word in your persdict.dat.
    I accidentally added an incorrectly spelled word to my dictionary, immediately googled the fix, & got this page. When I opened my persdict.dat, I didn’t see my word. After I restarted my Firefox, it came up. Hope that helps someone.

  18. 18 caleb on Jun 14, 2007 at 4:29 pm (Quote):

    Thank you for this awesome writeup. I just encountered the same issue.

  19. 19 PacketSmasher on Jun 28, 2007 at 2:14 am (Quote):

    Thanks!!! This whole pointy-clicky thing is overrated ;)

  20. 20 David on Jun 30, 2007 at 1:43 am (Quote):

    I’m in the folder but do not see the persdict.dat . I’ve checked my desktop XP and notebook Vista and the file is not there. Any ideas?

  21. 21 Ronald Heft on Jun 30, 2007 at 4:43 am (Quote):

    David: I’m in the folder but do not see the persdict.dat . I’ve checked my desktop XP and notebook Vista and the file is not there. Any ideas?

    Firefox needs to be closed for persdict.dat to be visible. Also, if you didn’t add any custom spellings, the file will not exist.

  22. 22 Leslie on Jul 1, 2007 at 4:36 am (Quote):

    thank you!! very useful

  23. 23 Vince on Jul 2, 2007 at 8:10 am (Quote):

    Many thanks for this, I was pulling teeth trying to find out how to edit the Firefox dictionary as I had a couple of misspelled words in there.

    Thanks again

  24. 24 SJ on Jul 5, 2007 at 2:40 pm (Quote):

    The feedback needs to be given to developers about this. The Add to dictionary button should have a confirmation dialog box.

  25. 25 s. on Jul 18, 2007 at 9:18 am (Quote):

    Thanks for this, but I’m stuck…I can’t find my Firefox profile. Part of the problem is obviously that I don’t have an Application Data folder! (I’m using XP.) All I’ve got in there is Cookies, Desktop, Favorites, My Docs, Start Menu, UserData, and WINDOWS. I’ve tried to do a search but keep coming up with nothing.

  26. 26 s. on Jul 18, 2007 at 9:26 am (Quote):

    s.: Thanks for this, but I’m stuck…I can’t find my Firefox profile. Part of the problem is obviously that I don’t have an Application Data folder!

    Sorry, never mind. I didn’t realise the App Dat folder was sometimes hidden.

  27. 27 Eric Li on Jul 26, 2007 at 7:22 am (Quote):

    When coming to Application Data, it might be hidden. Do:
    Tools -> Folder Options -> Show hidden files and folders -> ok. You may change it back later. Then you’ll see the folder Application Data if it was hidden.

    When looking for ‘persdict’, note it doesn’t necessarily needs to show the .dat at the end. If t doesn’t, it’s the same file.

  28. 28 Stan on Nov 6, 2007 at 4:36 am (Quote):

    Thanks for that! :)

  29. 29 McKenna on Nov 14, 2007 at 1:24 pm (Quote):

    Okay, I’m the dunce here. I am running Windows XP Pro, and I do not seem to have an Application Data folder. I have used explore, I have used search. I have three users: one is [Administrator], one is [All Users], and [User].

    So I get as far as Documents and Settings/[User] … and in none of those users do I find a folder called Application Data.

    I, too, have a click-happy finger, and I have several common words in my dictionary that are now misspelled, and I would LOVE to remove them.

    My apologies for being dense here.

  30. 30 Arno on Nov 14, 2007 at 11:21 pm (Quote):

    Great!
    New question: is there a way to edit the standard dictionary? I find all sorts of misspellings that seem to show up as obscure but correct English words. Every now and again I am dumbfounded by the mistakes I make that are not discovered, and they are not my own additons.

    Thanks much!!

  31. 31 Ronald Heft on Nov 15, 2007 at 1:12 am (Quote):

    McKenna: Okay, I’m the dunce here. I am running Windows XP Pro, and I do not seem to have an Application Data folder. I have used explore, I have used search. I have three users: one is [Administrator], one is [All Users], and [User].

    My apologies for being dense here.

    You’re not being dense at all. The Application Data folder is hidden by default so people don’t mess with it by accident. Here’s a good guide for making it visible.

    Arno: New question: is there a way to edit the standard dictionary? I find all sorts of misspellings that seem to show up as obscure but correct English words. Every now and again I am dumbfounded by the mistakes I make that are not discovered, and they are not my own additons.

    That’s an excellent question. Unfortunately, I don’t have a solid answer for you.

    After some quick poking around, I found a en-US.dic file and a en-US.aff file. Both files open in a standard text editor, but are not just a basic list of words. They contain some extra data. You may be alright just deleting the line containing the word you want to remove, but I can’t be certain. Make a backup of both files before proceeding.

    On Mac I found the file at:

    /Firefox.app/Contents/MacOS/dictionaries/

    I have no clue where those files are located on Windows, but I would assume the Program Files/Mozilla Firefox folder.

  32. 32 dibyendu on Nov 18, 2007 at 12:54 pm (Quote):

    thanks…. nice and very clear…

  33. 33 Brian on Dec 2, 2007 at 5:01 pm (Quote):

    Weird; I just added “occurance” to my dictionary and found this article, looked in the file, and only the words I had purposefully added had made it there o.o

    Oh well, I may not have needed it this time around, but it’s good to know for the future! :D

  34. 34 bigfoot13442 on Dec 7, 2007 at 8:00 am (Quote):

    i don’t have a persdict.dat file in that folder, or anywhere else on my computer. but i do have a dictionary and i did add a word by mistake. what do i do?

  35. 35 Ronald Heft on Dec 7, 2007 at 8:43 am (Quote):

    bigfoot13442: i don’t have a persdict.dat file in that folder, or anywhere else on my computer. but i do have a dictionary and i did add a word by mistake. what do i do?

    Are you looking the correct user folder? If so, the file will not exist if no custom words have been added to the dictionary. Are you positive the accidental word actually made it into the dictionary?

  36. 36 Sean on Dec 12, 2007 at 9:27 am (Quote):

    Thanks, appreciated the useful bit of info :)

  37. 37 Tori on Dec 21, 2007 at 9:53 pm (Quote):

    thank you!!! I had 5 in there and really wanted to fix it… much appreciated!

  38. 38 endolith on Dec 31, 2007 at 1:19 am (Quote):

    Thanks! This should be an add-on.

  39. 39 Thomas on Jan 14, 2008 at 1:05 pm (Quote):

    Thanks - great tip….

  40. 40 Hilal Suhaib on Jan 21, 2008 at 12:15 pm (Quote):

    Thanks a ton for this. Insane how this is the only way to do it eh?? Create a short cut of the DAT file to your desktop for easy access as well.

  41. 41 kunar on Jan 28, 2008 at 12:04 am (Quote):

    thanks a ton. i somehow managed to add 2 words today that didnt belong and couldnt figure this out for the life of me.

  42. 42 gt7599a on Feb 14, 2008 at 10:53 pm (Quote):

    For Windows users I suggest typing the following, it will get around not seeing hidden files/folders, is not specific to the user and is shorter. Environmental variables are your friend.

    %appdata%\Mozilla\Firefox\Profiles\
    then browse down through the *.default folder, close Firefox and edit away.

  43. 43 Thomas Mannino on Mar 5, 2008 at 1:43 pm (Quote):

    Thank you for this! I love the internet.

  44. 44 Daniel on Mar 14, 2008 at 6:58 pm (Quote):

    Thanks so much. I accidentally added a misspelled word to the dictionary and was able to remove thanks to this post. Very much appreciated! =]

  45. 45 Mike Whitla on Apr 10, 2008 at 9:07 pm (Quote):

    Thanks a ton for this. Got my dictionary all fixed up.

  46. 46 Keith on Apr 20, 2008 at 4:28 pm (Quote):

    Thanks much for this! I too had accidentally added misspelled words to the dictionary and I was able to remove them. We truly need a Firefox plug-in for this!

  47. 47 Anthony on Apr 23, 2008 at 12:11 pm (Quote):

    Thank you - this has helped me several times already.

  48. 48 sodapop on May 17, 2008 at 11:21 am (Quote):

    THANKS!!! I accidentally added two words in two days!!!

  49. 49 robin on Jun 9, 2008 at 1:01 pm (Quote):

    Brilliant stuff. Thanks for this tip.

  50. 50 f_w on Jun 9, 2008 at 1:54 pm (Quote):

    I find it wherry annoying that i have to use Google to find the right spelled word when the firefox speller suggest totally inappropriate alternative words.
    Are there any way to add to the suggested word list?

  51. 51 Phos.... on Jun 19, 2008 at 12:32 am (Quote):

    Thanks a lot, mate. Had a bunch of blunders I’ve been wanting to ditch for awhile. The update to Firefox 3.o yesterday seemed like a good time to figure out how.

    This page was the top result on a G-Search of edit firefox spelling dictionary, so I’m sure you’re happy about that.

    Cheers from Lancaster PA!

  52. 52 Andy on Jul 14, 2008 at 10:01 pm (Quote):

    This tip was a huge help. In addition, you can add words in the text editor that you know should be added like long last names and scientific terms.

5 Trackbacks/Pingbacks

  1. [...] Edit Firefox’s Spelling Dictionary · cavemonkey50.com (tags: extensions hacks spelling firefox) [...]

  2. Jonbu the baker » O yeah, I blog
    on Sep 2, 2007 at 12:59 am

    [...] hands like me, you’d be mis-spelling words forever once you add it to the dictionary. Luckily this guy has the solution in case it ever happens. Filed under : coworkers, park, sunset, spelling, Random StuffBy Jonbu On [...]

  3. [...] a nice tip for when you accidentally add a mis-spelled word to Firefox’s [...]

  4. [...] edit firefox’s spelling dictionary [...]

  5. [...] (Oh, and great instructions on how to edit your dictionary can be found over at CaveMonkey50.com .) [...]

Post a Comment

If you have the urge to code, run it through Postable and <pre><code>wrap it up</code></pre>.