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+
String conversion

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.
ABCDE
FGHIJ
ABCDEFGHIJ
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

Related tools

News

  • 2024/03/23
    "All" has been added to "Fill spaces" in "Detail settings" of the tool "Braille ASCII Art Generator".
    White space becomes less noticeable.
  • 2023/10/01
    "Fill" has been added to "Effect" in "Text Settings" of the tool "Dummy Image Generator".
    You can make the text easier to read if it is difficult to read.
  • 2023/10/01
    The tool "Text Image Generator" is no longer available.
    If you have any inquiries, please contact us from here.
  • 2023/09/24
    Added "SNAKE_CASE" and "KEBAB-CASE" to "Destination" of the tool "Letter Case Style Converter".
    You can convert to uppercase SNAKE_CASE and KEBAB-CASE.
  • 2023/09/16
    Fixed conversion from "camelCase / PascalCase" to "snake_case" and "kebab-case" to be more natural
    in the "Letter Case Style Converter" tool. If you find any problems or bugs, please contact us.

Feedback

If you have any requests, please feel free to contact us. If you find any problems or bugs, it would be helpful if you could contact us.

Give anonymous feedback
Give anonymous feedback

If you have any requests, please feel free to contact us. If you find any problems or bugs, it would be helpful if you could contact us.

Please note that the administrator will not be able to reply to any information entered in this form. If you need a reply from the administrator, please use X (Twitter) or Contact.

  • Your feedback has been sent.