Yes, it is legal to redact a document. Since redaction is meant to protect sensitive information, it can be used in forms and documents to hide information before publishing or sharing it with others. Besides that, it is also used to redact some areas in the document so that the other person can focus on the relevant content only.