This module provides a machine name field.

2011-10-26: The module was created by beejeebus and hunmonk for the D7 Version of the Project-Project (Report from Project 7.x-2.0 BADCamp Sprint):

This takes advantage of the D7 FormAPI machine_name form element #type and exposes it as a Field API field you can attach to any entity bundle. We’re using this for the project shortname on project node types, but since it could be useful to anyone, we published it as a separate project.

2012-04-24: C_Logemann Is the new Maintainer.

Safeword is a similar module. However, it depends on using a related text field and the machine name is auto-generated from that:

Safeword module provides a standard text field and when text is input displays a matching machine name field which automatically converts the text into a machine name formatted version, which can also be hand edited.

If you just need a stand-alone machine name field, use this. If you want two fields tied together (a frequent UI pattern in Drupal core), use Safeword.

Project Information