Skip to tool

C++ ROT13 Online

Apply ROT13 substitution cipher.

The output updates as you type. The tool processes input in your browser.

Worked example

ROT13 rotates ASCII letters by thirteen positions. Running it twice restores the original text.

Sample input
uryyb jbeyq
Sample output
hello world

Using this operation in C++

The interactive result uses JavaScript. std::string operates on char elements. With UTF-8 data, byte offsets and decoded character positions can differ.

C++ reference