EditSafely

OR ASCII Characters

Bitwise-OR character codes with a mask or a repeating key.

Runs on your device, nothing uploaded

Combine with
Mask (0 to 255)
Try:

0 chars · 0 lines

Output

Bitwise-OR character codes with a mask or a repeating key.

Type or paste above to see the result here.

Example: Lowercase bit

What you paste never leaves this tab

OR ASCII Characters is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use OR ASCII Characters

  1. 1. Enter the text to transform. Paste your characters into the input pane. Each character code will be combined with your mask using bitwise OR, which can only switch bits on, never off.
  2. 2. Choose the Mask value. Set Mask (0-255) to the decimal value whose set bits you want forced on in every character. The classic choice is 32, which sets the case bit and turns uppercase letters into lowercase.
  3. 3. Copy the ORed result. The output pane shows every character after the mask is applied. Copy it out, and note that OR is lossy: unlike XOR, you cannot recover the original text from the result alone.

When to use OR ASCII Characters

OR ASCII Characters forces chosen bits on across every character code in your text. Bitwise OR with a mask is a staple of low-level string tricks, most famously OR 32 for cheap lowercasing, and this tool lets you experiment with any mask value and see the character-level consequences instantly.

  • Demonstrating the OR 32 lowercase trick. Old C code lowercases ASCII by ORing each byte with 0x20. Reproduce that behavior on real sentences here to explain what a code review found, including how it mangles digits and punctuation.
  • Predicting the effect of a stuck-high bit. A flaky serial line or damaged EEPROM can hold one data bit permanently high, which behaves exactly like OR with a single-bit mask. Model the corruption to recognize its signature in captured data.
  • Verifying flag-setting logic. Firmware packs status flags into a byte and sets them with OR. Apply your mask to sample values here and confirm the resulting codes match what the device actually reports.
  • Exploring the ASCII table's structure. Try masks like 16 or 64 on the alphabet and watch which columns of the table the characters jump to. It is a fast, concrete way to internalize how the encoding is arranged.

Examples

Lowercase bit

Input

HELLO

Output

hello

About the OR ASCII Characters tool

OR ASCII Characters does its work locally, right in the browser. Bitwise-OR character codes with a mask or a repeating key. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the ASCII Tools collection on EditSafely, a set of 81 small, focused ASCII utilities that share the same instant, private workspace.

You can shape the output with 3 settings, including Combine with, Mask (0 to 255) and Key (repeats over the input, Key mode), and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is OR ASCII Characters free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All ASCII Tools →