Terraria Map Editor, TEdit, is a stand alone, open source map editor for Terraria. It lets you edit maps just like (almost) paint!
MAKE A BACKUP OF YOUR WORLD BEFORE USING THIS!!!
There is an auto-backup feature that will backup worlds to *.wld.Tedit, but you should make your own backups.
TEdit3 Curse Feature