String Generator

This is a string generation tool (for developers) that may be useful for checking the length of strings.
It is mainly used to create test data for string checking of input values. Feel free to use it.

0 characters
String type Length
u+
 

Description

Usage

Enter the type of string you want to create and the length of the string, and click the "Execute" button.
Then, the created string is output to the text area.

String type

Type Description Example
Fixed
specification
Output the string using the fixed string.
Half-width
"Half-width Alphabet (upper)", 5 chars → ABCDE
"Half-width Alphabet (lower)", 5 chars → abcde
"Half-width Number", 5 chars → 01234
"Half-width Symbol", 5 chars → !"#$%
"Half-width Katakana", 5 chars → ヲァィゥェ
"Half-width Random", 5 chars → ケRSN4
Full-width
"Full-width Alphabet (upper)", 5 chars → ABCDE
"Full-width Alphabet (lower)", 5 chars → abcde
"Full-width Number", 5 chars → 01234
"Full-width Symbol", 5 chars → !”#$%
"Full-width Hiragana", 5 chars → ぁあぃいぅ
"Full-width Katakana", 5 chars → ァアィイゥ
"Full-width Kanji (JIS lv.1)", 5 chars → 亜唖娃阿哀
※ JIS level 1 kanji list (2,965 characters).
"Full-width Kanji (JIS lv.2)", 5 chars → 弌丐丕个丱
※ JIS level 2 kanji list (3,390 characters).
"Full-width SJIS garbled", 5 chars → ―ソ能表Ы
"Full-width Machine dependent", 5 chars → ①②③④⑤
"Full-width Surrogate pair", 5 chars → 𠀋𡈽𡌛𡑮𡢽
※ A surrogate pair is 2 characters for 1 character. The number of displayed characters is 1, but the number of Unicode characters is 2.
"Full-width Surrogate pair emoji", 5 chars → 🀄🃏🅰🅱🅾
※ Emoji up to Unicode 10.0 using surrogate pairs.
"Full-width Random", 5 chars → ブ’たLM
Other
"Random", 5 chars → $¥:YX
※ 「Full-width Random」and「Random」do not include surrogate pairs.
Character
specification
Output the string starting from any one character. "A", 5 chars → ABCDE
"a", 5 chars → abcde
"😀", 5 chars → 😀😁😂😃😄
Code point
specification
Output the string starting from any code point (Unicode hexadecimal). u+ "0041", 5 chars → ABCDE
u+ "0061", 5 chars → abcde
u+ "1f600", 5 chars → 😀😁😂😃😄
String
specification
Output the string using the specified string. "ABCDE", 10 chars → ABCDEABCDE

String conversion

Control Description Example
Lower Convert the string to lowercase. ABCDE → abcde
Upper Convert the string to uppercase. abcde → ABCDE
Half width Convert the string to half-width characters. ABCDE → ABCDE
Full width Convert the string to full-width characters. ABCDE → ABCDE
Hiragana Convert the string to Hiragana. アイウエオ → あいうえお
Katakana Convert the string to Katakana. あいうえお → アイウエオ
Reverse Sort the string in reverse order. 12345 → 54321
Shuffle Shuffle the string. 12345 → 32451
Repeat Repeat the string. ABCDE → ABCDEABCDE
Append Append the created string to the string.
Cut Cut the string to the specified length or less.
Control Description Example
HTML
escape
Convert special characters in the string to HTML entities. <br> → &lt;br&gt;
HTML
unescape
Convert HTML entities in the string to special characters. &lt;br&gt; → <br>
HTML
tag lower
Convert HTML tags in the string to lowercase. <BR> → <br>
HTML
tag upper
Convert HTML tags in the string to uppercase. <br> → <BR>
HTML
strip
Strip HTML tags in the string. <h1>ABCDE</h1> → ABCDE
Char Ref 10
encode
Encode the string in numeric character reference (decimal) format. ABCDE → &#65;&#66;&#67;&#68;&#69;
Char Ref 16
encode
Encode the string in numeric character reference (hexadecimal) format. ABCDE → &#x41;&#x42;&#x43;&#x44;&#x45;
Char Ref
decode
Decode the string in numeric character reference format. Both decimal and hexadecimal formats are decoded. Character entity references are not decoded. &#65;&#x42;&#67;&#x44;&#69; → ABCDE
Control Description Example
New line
remove
Remove newlines from the string.
ABCDEFG
HIJKLMN
ABCDEFGHIJKLMN
New line
append
Append newlines to the end of the string.
ABCDE.FGHIJ.
ABCDE.
FGHIJ.
nl2br Insert <br> before the newlines in the string.
ABCDE
FGHIJ
ABCDE<br>
FGHIJ
Row
ascending
Sort the string in ascending order by row.
KLMNO
UVWXY
FGHIJ
PQRST
ABCDE
ABCDE
FGHIJ
KLMNO
PQRST
UVWXY
Row
reverse
Sort the string in reverse order by row.
ABCDE
FGHIJ
KLMNO
PQRST
UVWXY
UVWXY
PQRST
KLMNO
FGHIJ
ABCDE
Row
shuffle
Shuffle the string by row.
ABCDE
FGHIJ
KLMNO
PQRST
UVWXY
KLMNO
UVWXY
FGHIJ
PQRST
ABCDE
Duplicate line
remove
Remove duplicate lines.
ABCDE
ABCDE
FGHIJ
FGHIJ
KLMNO
ABCDE
FGHIJ
KLMNO
Blank line
remove
Remove blank lines.
ABCDE

FGHIJ

KLMNO
ABCDE
FGHIJ
KLMNO
Control Description Example
URL
encode
Encode the string with URL encoding (percent encoding). あいうえお → %E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A
URL
decode
Decode the string with URL encoding (percent encoding). %E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A → あいうえお
MIME
encode
Encode the string with MIME header encoding. あいうえお → =?UTF-8?B?44GC44GE44GG44GI44GK?=
MIME
decode
Decode the string with MIME header encoding. =?UTF-8?B?44GC44GE44GG44GI44GK?= → あいうえお
Base64
encode
Encode the string with Base64 encoding. ABCDE → QUJDREU=
Base64
decode
Decode the string with Base64 encoding. QUJDREU= → ABCDE
Unicode
encode
Encode the string in Unicode (Universal character names) format. ABCDE → \u0041\u0042\u0043\u0044\u0045
Unicode
decode
Decode the string in Unicode (Universal character names) format. \uXXXX, \UXXXX, u+XXXX, U+XXXX formats are supported. You can also use surrogate pairs. \u0041\u0042\u0043\u0044\u0045 → ABCDE

Related sites

If you have any requests, please feel free to contact us via Twitter or Contact.
Also, if you find a problem or bug, it would be helpful if you could contact us.

News

  • 2022/11/24 NEW
    Added "QR Code Generator" to "Tool".
    Generate a QR code from any text. You can also use emojis etc.
    Use it when you have trouble entering long URLs or large amounts of text.
  • 2022/11/23 NEW
    Added "Random Picker" to "Tool".
    Draw lots from any list.
    You can also decide the order and group (team).
  • 2022/11/01
    The tools "Terminal ASCII Art Generator", "Browser Console ASCII Art Generator", "IDN Conversion Tool", and "uuencode / uudecode Tool" are no longer available.
  • 2022/10/02
    Added "Text Image Generator" to "Tool".
    Convert any text to image.
    ASCII art and emojis can be converted directly into image.
  • 2022/09/30
    Added "Convert this result to an image" to the tools "Huge ASCII Art Generator" and "Braille ASCII Art Generator".
    You can convert the generated ASCII art from text to image.