← All text tools

Umask Calculator

Calculate the default file and directory permissions that result from a umask value, in octal and rwx form, with a table of common umasks.

  • Free
  • No sign-up
  • Works on any device

About Umask Calculator

The umask is a mask of permission bits that Linux and Unix remove from every new file and directory. Files start from 666 and directories from 777, so a umask of 022 removes write permission for group and others and gives 644 for files and 755 for directories. Enter any 3 or 4 digit octal umask to see the resulting modes in octal and in rwx form and the permissions it takes away. You can also enter the directory mode you want, such as 750, to get the umask that produces it, and a table lists the common values.

How to use Umask Calculator

  1. Enter the umask in octal, such as 022 or 077.
  2. Read the modes of new files and new directories, in octal and rwx.
  3. Optionally enter a wanted directory mode to find the umask that gives it.

Why use this tool?

Also known as

Frequently asked questions

Why do new files not get the execute bit?

Files are created from 666, which has no execute bit, so a umask can never add one. Directories start from 777, and compilers ask for 777 on the executables they create.

What does umask 022 mean?

It removes write permission from group and others. New files become 644 (rw-r--r--) and new directories become 755 (rwxr-xr-x), the usual default on many Linux systems.

How do I make the umask permanent?

Add a umask line to your shell startup file such as ~/.profile or ~/.bashrc, or set it for all users in /etc/login.defs or the PAM configuration, depending on the distribution.

Is Umask Calculator free?

Yes. Umask Calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Umask Calculator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools